Skip to content

Instantly share code, notes, and snippets.

@mgood7123
mgood7123 / SingleLineAutoSizeTextView.java
Last active March 27, 2021 19:52
Text view that auto adjusts text size to fit within the view height.
package smallville7123.UI;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.text.LineBreaker;
import android.text.Layout;
import android.text.Layout.Alignment;
import android.text.StaticLayout;
import android.text.TextPaint;
@mgood7123
mgood7123 / SingleLineAutoSizeTextView.java
Last active March 27, 2021 19:56
Text view that auto adjusts text size to fit on a single line within the view.
package smallville7123.UI;
import android.annotation.SuppressLint;
import android.content.Context;
import android.graphics.Rect;
import android.graphics.text.LineBreaker;
import android.text.Layout;
import android.text.Layout.Alignment;
import android.text.StaticLayout;
import android.text.TextPaint;
@mgood7123
mgood7123 / devicesamsungdreamlteAndroidProducts.mk
Created April 21, 2021 03:11
device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mgood7123
mgood7123 / devicesamsungdreamlteAndroidProducts.mk
Created April 21, 2021 03:12
device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mgood7123
mgood7123 / devicesamsungdreamlteAndroidProducts.mk
Created April 21, 2021 03:21
device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; lunch;
Created April 21, 2021 03:23
$ cat device/samsung/dreamlte/AndroidProducts.mk; lunch;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; . buildenv_setup.sh ; lunch;
Created April 21, 2021 03:24
$ cat device/samsung/dreamlte/AndroidProducts.mk; . build/env_setup.sh ; lunch;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; . .buildenv_setup.sh ; lunch;
Created April 21, 2021 03:24
$ cat device/samsung/dreamlte/AndroidProducts.mk; . ./build/env_setup.sh ; lunch;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; ls ; . .buildenv_setup.sh ; lunch;
Created April 21, 2021 03:24
$ cat device/samsung/dreamlte/AndroidProducts.mk; ls ; . ./build/env_setup.sh ; lunch;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@mgood7123
mgood7123 / $ cat devicesamsungdreamlteAndroidProducts.mk; . .buildenvsetup.sh ; print_lunch_menu;
Created April 21, 2021 03:25
$ cat device/samsung/dreamlte/AndroidProducts.mk; . ./build/envsetup.sh ; print_lunch_menu;
$ cat device/samsung/dreamlte/AndroidProducts.mk
#
# Copyright (C) 2019 The LineageOS Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#