-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
LiuRi
committed
Jan 24, 2017
1 parent
3551f37
commit 3fbe80e
Showing
18 changed files
with
248 additions
and
25 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ buildscript { | |
allprojects { | ||
repositories { | ||
jcenter() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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
12 changes: 12 additions & 0 deletions
12
LemonHello4Android/lemonhello-samples/src/main/res/drawable/round_function_button.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<solid android:color="#FFFFFF" /> | ||
<stroke | ||
android:width="2px" | ||
android:color="#AAAAAA" /> | ||
<corners | ||
android:bottomLeftRadius="5dp" | ||
android:bottomRightRadius="5dp" | ||
android:topLeftRadius="5dp" | ||
android:topRightRadius="5dp" /> | ||
</shape> |
182 changes: 166 additions & 16 deletions
182
LemonHello4Android/lemonhello-samples/src/main/res/layout/activity_main.xml
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,170 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/activity_main" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:paddingBottom="@dimen/activity_vertical_margin" | ||
android:paddingLeft="@dimen/activity_horizontal_margin" | ||
android:paddingRight="@dimen/activity_horizontal_margin" | ||
android:paddingTop="@dimen/activity_vertical_margin" | ||
tools:context="lemonsoft.net.lemonhello4android.MainActivity"> | ||
|
||
<Button | ||
android:id="@+id/sButton" | ||
android:layout_width="100dp" | ||
android:layout_height="100dp" | ||
android:background="#abcdef" | ||
android:text="S" /> | ||
|
||
</RelativeLayout> | ||
android:layout_margin="6dp" | ||
android:orientation="vertical"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_success" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_success" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="成功对话框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_error" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_error" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="错误对话框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_warning" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_warning" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="警告对话框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_information" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_information" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="信息提示框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_bookmark" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_bookmark" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="图标对话框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:id="@+id/btn_custom" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="2dp" | ||
android:layout_weight="1" | ||
android:background="@drawable/round_function_button" | ||
android:orientation="vertical" | ||
android:padding="16dp"> | ||
|
||
<ImageView | ||
android:layout_width="50dp" | ||
android:layout_height="50dp" | ||
android:layout_gravity="center_horizontal" | ||
android:src="@mipmap/icon_warning" /> | ||
|
||
<TextView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="8dp" | ||
android:gravity="center_horizontal" | ||
android:text="自定义对话框" | ||
android:textSize="10dp" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
</LinearLayout> |
Binary file removed
BIN
-3.34 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap-hdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-2.15 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap-mdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-4.73 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap-xhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-7.54 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap-xxhdpi/ic_launcher.png
Binary file not shown.
Binary file removed
BIN
-10.2 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Binary file not shown.
Binary file added
BIN
+7.26 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap/icon_bookmark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.2 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap/icon_error.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+12.5 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap/icon_information.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.8 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap/icon_success.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.04 KB
LemonHello4Android/lemonhello-samples/src/main/res/mipmap/icon_warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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