This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.zhaosam.textviewtest; | |
import android.content.Context; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.graphics.Rect; | |
import android.util.AttributeSet; | |
import android.widget.TextView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/samzhao/Library/Preferences/AndroidStudioBeta/colors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For the EditText's parent view, let the following 3 attributes be "true": | |
clickable, focusable, focusableOnTouch. | |
If a view want to receive focus, it must satisfy these 3 conditions. | |
See android.view : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Even if you haven't tracked the files so far, git seems to be able to "know" about them even after you add them to .gitignore. | |
A quick fix that I've used was to run the following commands from the top folder of your git repo: | |
(edited) | |
git rm -r --cached . | |
Followed by: | |
git add . | |
and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<activity | |
android:name="com.ilegendsoft.toprankapps.tubeplayer.activities.PlayVideoActivity" | |
android:configChanges="orientation|screenSize" | |
android:launchMode="singleTop" | |
android:logo="@drawable/play_video_back" > | |
</activity> | |
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<resources> | |
<style name="Theme.AppCompat.Light.NoActionBar" parent="@style/Theme.AppCompat.Light"> | |
<item name="android:windowNoTitle">true</item> | |
</style> | |
</resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
List<Fruit> fruits= new ArrayList<Fruit>(); | |
Fruit fruit; | |
for(int i=0;i<100;i++) | |
{ | |
fruit = new fruit(); | |
fruit.setname(...); | |
fruits.add(fruit); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ilegendsoft.toprankapps.tubeplayer.utils; | |
import android.os.Environment; | |
import android.os.StatFs; | |
public class FSUtil { | |
// One binary gigabyte equals 1,073,741,824 bytes. | |
private static final long PER_G_NUM = 1073741824; | |
public static String getAvailableSpace() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<SeekBar | |
android:id="@+id/mediacontroller_progress" | |
style="?android:attr/progressBarStyleHorizontal" | |
android:layout_width="match_parent" | |
android:layout_height="24dp" | |
android:maxHeight="2dp" | |
android:progressDrawable="@drawable/seekbar" | |
android:thumb="@drawable/seekbar_thumb" /> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mFilterWindow = new PopupWindow(popupLayout, | |
WindowManager.LayoutParams.WRAP_CONTENT, | |
WindowManager.LayoutParams.WRAP_CONTENT); | |
mFilterWindow.setOutsideTouchable(true); | |
mFilterWindow.setBackgroundDrawable(new ColorDrawable()); | |
mFilterWindow.setFocusable(true); |
NewerOlder