Commit 544537772bd660927de2f3d861b4bbc4effc8e78
修改页面布局
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project version="4"> | 2 | <project version="4"> |
| 3 | - <component name="Encoding"> | 3 | + <component name="Encoding" native2AsciiForPropertiesFiles="true" defaultCharsetForPropertiesFiles="UTF-8"> |
| 4 | <file url="PROJECT" charset="UTF-8" /> | 4 | <file url="PROJECT" charset="UTF-8" /> |
| 5 | </component> | 5 | </component> |
| 6 | </project> | 6 | </project> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
| @@ -2,6 +2,7 @@ | @@ -2,6 +2,7 @@ | ||
| 2 | <profile version="1.0"> | 2 | <profile version="1.0"> |
| 3 | <option name="myName" value="Project Default" /> | 3 | <option name="myName" value="Project Default" /> |
| 4 | <inspection_tool class="AndroidLintNewApi" enabled="false" level="ERROR" enabled_by_default="false" /> | 4 | <inspection_tool class="AndroidLintNewApi" enabled="false" level="ERROR" enabled_by_default="false" /> |
| 5 | + <inspection_tool class="AndroidLintSetTextI18n" enabled="false" level="WARNING" enabled_by_default="false" /> | ||
| 5 | <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> | 6 | <inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false"> |
| 6 | <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> | 7 | <option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" /> |
| 7 | <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" /> | 8 | <option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" /> |
| 1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | -<project version="4"> | ||
| 3 | - <component name="MarkdownProjectSettings"> | ||
| 4 | - <PreviewSettings splitEditorLayout="SPLIT" splitEditorPreview="PREVIEW" useGrayscaleRendering="false" zoomFactor="1.0" maxImageWidth="0" showGitHubPageIfSynced="false" allowBrowsingInPreview="false" synchronizePreviewPosition="true" highlightPreviewType="NONE" highlightFadeOut="5" highlightOnTyping="true" synchronizeSourcePosition="true" verticallyAlignSourceAndPreviewSyncPosition="true" showSearchHighlightsInPreview="true" showSelectionInPreview="true"> | ||
| 5 | - <PanelProvider> | ||
| 6 | - <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.panel" providerName="Default - Swing" /> | ||
| 7 | - </PanelProvider> | ||
| 8 | - </PreviewSettings> | ||
| 9 | - <ParserSettings gitHubSyntaxChange="false"> | ||
| 10 | - <PegdownExtensions> | ||
| 11 | - <option name="ABBREVIATIONS" value="false" /> | ||
| 12 | - <option name="ANCHORLINKS" value="true" /> | ||
| 13 | - <option name="ASIDE" value="false" /> | ||
| 14 | - <option name="ATXHEADERSPACE" value="true" /> | ||
| 15 | - <option name="AUTOLINKS" value="true" /> | ||
| 16 | - <option name="DEFINITIONS" value="false" /> | ||
| 17 | - <option name="DEFINITION_BREAK_DOUBLE_BLANK_LINE" value="false" /> | ||
| 18 | - <option name="FENCED_CODE_BLOCKS" value="true" /> | ||
| 19 | - <option name="FOOTNOTES" value="false" /> | ||
| 20 | - <option name="HARDWRAPS" value="false" /> | ||
| 21 | - <option name="INSERTED" value="false" /> | ||
| 22 | - <option name="QUOTES" value="false" /> | ||
| 23 | - <option name="RELAXEDHRULES" value="true" /> | ||
| 24 | - <option name="SMARTS" value="false" /> | ||
| 25 | - <option name="STRIKETHROUGH" value="true" /> | ||
| 26 | - <option name="SUBSCRIPT" value="false" /> | ||
| 27 | - <option name="SUPERSCRIPT" value="false" /> | ||
| 28 | - <option name="SUPPRESS_HTML_BLOCKS" value="false" /> | ||
| 29 | - <option name="SUPPRESS_INLINE_HTML" value="false" /> | ||
| 30 | - <option name="TABLES" value="true" /> | ||
| 31 | - <option name="TASKLISTITEMS" value="true" /> | ||
| 32 | - <option name="TOC" value="false" /> | ||
| 33 | - <option name="WIKILINKS" value="true" /> | ||
| 34 | - </PegdownExtensions> | ||
| 35 | - <ParserOptions> | ||
| 36 | - <option name="COMMONMARK_LISTS" value="false" /> | ||
| 37 | - <option name="DUMMY" value="false" /> | ||
| 38 | - <option name="EMOJI_SHORTCUTS" value="true" /> | ||
| 39 | - <option name="FLEXMARK_FRONT_MATTER" value="false" /> | ||
| 40 | - <option name="GFM_LOOSE_BLANK_LINE_AFTER_ITEM_PARA" value="true" /> | ||
| 41 | - <option name="GFM_TABLE_RENDERING" value="true" /> | ||
| 42 | - <option name="GITBOOK_URL_ENCODING" value="false" /> | ||
| 43 | - <option name="GITHUB_EMOJI_URL" value="false" /> | ||
| 44 | - <option name="GITHUB_LISTS" value="true" /> | ||
| 45 | - <option name="GITHUB_WIKI_LINKS" value="true" /> | ||
| 46 | - <option name="JEKYLL_FRONT_MATTER" value="false" /> | ||
| 47 | - <option name="SIM_TOC_BLANK_LINE_SPACER" value="true" /> | ||
| 48 | - </ParserOptions> | ||
| 49 | - </ParserSettings> | ||
| 50 | - <HtmlSettings headerTopEnabled="false" headerBottomEnabled="false" bodyTopEnabled="false" bodyBottomEnabled="false" embedUrlContent="false" addPageHeader="true"> | ||
| 51 | - <GeneratorProvider> | ||
| 52 | - <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.generator" providerName="Default Swing HTML Generator" /> | ||
| 53 | - </GeneratorProvider> | ||
| 54 | - <headerTop /> | ||
| 55 | - <headerBottom /> | ||
| 56 | - <bodyTop /> | ||
| 57 | - <bodyBottom /> | ||
| 58 | - </HtmlSettings> | ||
| 59 | - <CssSettings previewScheme="UI_SCHEME" cssUri="" isCssUriEnabled="false" isCssTextEnabled="false" isDynamicPageWidth="true"> | ||
| 60 | - <StylesheetProvider> | ||
| 61 | - <provider providerId="com.vladsch.idea.multimarkdown.editor.swing.html.css" providerName="Default Swing Stylesheet" /> | ||
| 62 | - </StylesheetProvider> | ||
| 63 | - <ScriptProviders /> | ||
| 64 | - <cssText /> | ||
| 65 | - </CssSettings> | ||
| 66 | - <HtmlExportSettings updateOnSave="false" parentDir="$ProjectFileDir$" targetDir="$ProjectFileDir$" cssDir="" scriptDir="" plainHtml="false" imageDir="" copyLinkedImages="false" imageUniquifyType="0" targetExt="" useTargetExt="false" noCssNoScripts="false" linkToExportedHtml="true" exportOnSettingsChange="true" regenerateOnProjectOpen="false" /> | ||
| 67 | - <LinkMapSettings> | ||
| 68 | - <textMaps /> | ||
| 69 | - </LinkMapSettings> | ||
| 70 | - </component> | ||
| 71 | -</project> | ||
| 72 | \ No newline at end of file | 0 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="UTF-8"?> | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project version="4"> | 2 | <project version="4"> |
| 3 | <component name="VcsDirectoryMappings"> | 3 | <component name="VcsDirectoryMappings"> |
| 4 | - <mapping directory="$PROJECT_DIR$" vcs="Git" /> | 4 | + <mapping directory="" vcs="Git" /> |
| 5 | </component> | 5 | </component> |
| 6 | </project> | 6 | </project> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
| @@ -53,6 +53,7 @@ | @@ -53,6 +53,7 @@ | ||
| 53 | android:launchMode="singleTop" | 53 | android:launchMode="singleTop" |
| 54 | android:screenOrientation="portrait" | 54 | android:screenOrientation="portrait" |
| 55 | android:windowSoftInputMode="adjustResize" /> | 55 | android:windowSoftInputMode="adjustResize" /> |
| 56 | + | ||
| 56 | <activity android:name=".user.activity.LoginActivity"/> | 57 | <activity android:name=".user.activity.LoginActivity"/> |
| 57 | 58 | ||
| 58 | <receiver | 59 | <receiver |
4.46 KB
4.12 KB
1.52 KB
2.3 KB
650 Bytes
883 Bytes
732 Bytes
999 Bytes
681 Bytes
931 Bytes
518 Bytes
692 Bytes
723 Bytes
1.89 KB
849 Bytes
2.01 KB
1.71 KB
2.02 KB
4.45 KB
4.12 KB
4.11 KB
3.91 KB
4.49 KB
5.06 KB
4.42 KB
4.09 KB
4.15 KB
4.05 KB
2.83 KB
2.5 KB
2.49 KB
2.29 KB
822 Bytes
1.18 KB
411 Bytes
564 Bytes
464 Bytes
632 Bytes
516 Bytes
717 Bytes
315 Bytes
425 Bytes
506 Bytes
1.3 KB
588 Bytes
1.16 KB
1.01 KB
1.09 KB
2.43 KB
2.25 KB
2.28 KB
2.21 KB
2.45 KB
2.8 KB
2.45 KB
2.26 KB
2.36 KB
2.26 KB
1.54 KB
1.36 KB
5.84 KB
5.52 KB
1.82 KB
2.63 KB
702 Bytes
910 Bytes
874 Bytes
1.16 KB
994 Bytes
1.3 KB
561 Bytes
729 Bytes
1.06 KB
2.92 KB
1.47 KB
3.38 KB
2.83 KB
2.58 KB
5.83 KB
5.44 KB
5.4 KB
5.26 KB
6.04 KB
6.82 KB
6.03 KB
5.55 KB
5.35 KB
5.36 KB
10.5 KB
9.94 KB
3.39 KB
4.77 KB
1.24 KB
1.56 KB
1.56 KB
2.07 KB
1.39 KB
1.79 KB
1.04 KB
1.29 KB
10.9 KB
10.1 KB
9.61 KB
9.46 KB
11.1 KB
12.5 KB
11.1 KB
10.1 KB
9.68 KB
9.55 KB
7.4 KB
6.79 KB
14.3 KB
13.8 KB
4 KB
5.42 KB
1.56 KB
1.96 KB
2.01 KB
2.49 KB
2.12 KB
2.69 KB
1.38 KB
1.65 KB
3.22 KB
8.37 KB
4.52 KB
9.8 KB
8 KB
7.44 KB
14.9 KB
14 KB
13.2 KB
13.3 KB
15.7 KB
17.7 KB
15.8 KB
14.4 KB
13 KB
13.4 KB
10.7 KB
9.92 KB
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/ic_flash_on_sel" android:state_pressed="true" /> | ||
| 4 | - <item android:drawable="@drawable/ic_flash_on" android:state_pressed="false" /> | 3 | + |
| 4 | + <item android:drawable="@drawable/stream_close_on" android:state_pressed="true" /> | ||
| 5 | + <item android:drawable="@drawable/stream_close" android:state_pressed="false" /> | ||
| 5 | </selector> | 6 | </selector> |
| 6 | \ No newline at end of file | 7 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/ic_meiyan_on_sel" android:state_pressed="true" /> | ||
| 4 | - <item android:drawable="@drawable/ic_meiyan_on" android:state_pressed="false" /> | 3 | + <item android:drawable="@drawable/stream_flash_on_sel" android:state_pressed="true" /> |
| 4 | + <item android:drawable="@drawable/stream_flash_on" android:state_pressed="false" /> | ||
| 5 | </selector> | 5 | </selector> |
| 6 | \ No newline at end of file | 6 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | 3 | ||
| 4 | - <item android:drawable="@drawable/ic_close_on" android:state_pressed="true" /> | ||
| 5 | - <item android:drawable="@drawable/ic_close" android:state_pressed="false" /> | 4 | + <item android:drawable="@drawable/stream_switch_camera_sel" android:state_pressed="true" /> |
| 5 | + <item android:drawable="@drawable/stream_switch_camera" android:state_pressed="false" /> | ||
| 6 | </selector> | 6 | </selector> |
| 7 | \ No newline at end of file | 7 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - <item android:drawable="@drawable/ic_meiyan_sel" android:state_pressed="true" /> | ||
| 4 | - <item android:drawable="@drawable/ic_meiyan" android:state_pressed="false" /> | 3 | + <item android:drawable="@drawable/stream_meiyan_sel" android:state_pressed="true" /> |
| 4 | + <item android:drawable="@drawable/stream_meiyan" android:state_pressed="false" /> | ||
| 5 | </selector> | 5 | </selector> |
| 6 | \ No newline at end of file | 6 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | - | ||
| 4 | - <item android:drawable="@drawable/ic_switch_camera_sel" android:state_pressed="true" /> | ||
| 5 | - <item android:drawable="@drawable/ic_switch_camera" android:state_pressed="false" /> | 3 | + <item android:drawable="@drawable/stream_meiyan_on_sel" android:state_pressed="true" /> |
| 4 | + <item android:drawable="@drawable/stream_meiyan_on" android:state_pressed="false" /> | ||
| 6 | </selector> | 5 | </selector> |
| 7 | \ No newline at end of file | 6 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <!-- Non focused states --> | 3 | <!-- Non focused states --> |
| 4 | - <item android:drawable="@drawable/ic_camera_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | ||
| 5 | - <item android:drawable="@drawable/ic_camera" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | 4 | + <item android:drawable="@drawable/main_camera_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> |
| 5 | + <item android:drawable="@drawable/main_camera" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | ||
| 6 | <!-- Focused states --> | 6 | <!-- Focused states --> |
| 7 | - <item android:drawable="@drawable/ic_camera" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | ||
| 8 | - <item android:drawable="@drawable/ic_camera" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | 7 | + <item android:drawable="@drawable/main_camera" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> |
| 8 | + <item android:drawable="@drawable/main_camera" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | ||
| 9 | <!-- Pressed --> | 9 | <!-- Pressed --> |
| 10 | - <item android:drawable="@drawable/ic_camera" android:state_pressed="true" android:state_selected="true" /> | ||
| 11 | - <item android:drawable="@drawable/ic_camera" android:state_pressed="true" /> | 10 | + <item android:drawable="@drawable/main_camera" android:state_pressed="true" android:state_selected="true" /> |
| 11 | + <item android:drawable="@drawable/main_camera" android:state_pressed="true" /> | ||
| 12 | 12 | ||
| 13 | </selector> | 13 | </selector> |
| 14 | \ No newline at end of file | 14 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <!-- Non focused states --> | 3 | <!-- Non focused states --> |
| 4 | - <item android:drawable="@drawable/ic_home" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | ||
| 5 | - <item android:drawable="@drawable/ic_home_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | 4 | + <item android:drawable="@drawable/main_home" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> |
| 5 | + <item android:drawable="@drawable/main_home_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | ||
| 6 | <!-- Focused states --> | 6 | <!-- Focused states --> |
| 7 | - <item android:drawable="@drawable/ic_home_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | ||
| 8 | - <item android:drawable="@drawable/ic_home_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | 7 | + <item android:drawable="@drawable/main_home_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> |
| 8 | + <item android:drawable="@drawable/main_home_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | ||
| 9 | <!-- Pressed --> | 9 | <!-- Pressed --> |
| 10 | - <item android:drawable="@drawable/ic_home_sel" android:state_pressed="true" android:state_selected="true" /> | ||
| 11 | - <item android:drawable="@drawable/ic_home_sel" android:state_pressed="true" /> | 10 | + <item android:drawable="@drawable/main_home_sel" android:state_pressed="true" android:state_selected="true" /> |
| 11 | + <item android:drawable="@drawable/main_home_sel" android:state_pressed="true" /> | ||
| 12 | 12 | ||
| 13 | </selector> | 13 | </selector> |
| 14 | \ No newline at end of file | 14 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <!-- Non focused states --> | 3 | <!-- Non focused states --> |
| 4 | - <item android:drawable="@drawable/ic_live_tv" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | ||
| 5 | - <item android:drawable="@drawable/ic_live_tv_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | 4 | + <item android:drawable="@drawable/main_live_tv" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> |
| 5 | + <item android:drawable="@drawable/main_live_tv_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | ||
| 6 | <!-- Focused states --> | 6 | <!-- Focused states --> |
| 7 | - <item android:drawable="@drawable/ic_live_tv_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | ||
| 8 | - <item android:drawable="@drawable/ic_live_tv_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | 7 | + <item android:drawable="@drawable/main_live_tv_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> |
| 8 | + <item android:drawable="@drawable/main_live_tv_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | ||
| 9 | <!-- Pressed --> | 9 | <!-- Pressed --> |
| 10 | - <item android:drawable="@drawable/ic_live_tv_sel" android:state_pressed="true" android:state_selected="true" /> | ||
| 11 | - <item android:drawable="@drawable/ic_live_tv_sel" android:state_pressed="true" /> | 10 | + <item android:drawable="@drawable/main_live_tv_sel" android:state_pressed="true" android:state_selected="true" /> |
| 11 | + <item android:drawable="@drawable/main_live_tv_sel" android:state_pressed="true" /> | ||
| 12 | 12 | ||
| 13 | </selector> | 13 | </selector> |
| 14 | \ No newline at end of file | 14 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <!-- Non focused states --> | 3 | <!-- Non focused states --> |
| 4 | - <item android:drawable="@drawable/ic_person" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | ||
| 5 | - <item android:drawable="@drawable/ic_person_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | 4 | + <item android:drawable="@drawable/main_person" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> |
| 5 | + <item android:drawable="@drawable/main_person_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | ||
| 6 | <!-- Focused states --> | 6 | <!-- Focused states --> |
| 7 | - <item android:drawable="@drawable/ic_person_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | ||
| 8 | - <item android:drawable="@drawable/ic_person_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | 7 | + <item android:drawable="@drawable/main_person_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> |
| 8 | + <item android:drawable="@drawable/main_person_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | ||
| 9 | <!-- Pressed --> | 9 | <!-- Pressed --> |
| 10 | - <item android:drawable="@drawable/ic_person_sel" android:state_pressed="true" android:state_selected="true" /> | ||
| 11 | - <item android:drawable="@drawable/ic_person_sel" android:state_pressed="true" /> | 10 | + <item android:drawable="@drawable/main_person_sel" android:state_pressed="true" android:state_selected="true" /> |
| 11 | + <item android:drawable="@drawable/main_person_sel" android:state_pressed="true" /> | ||
| 12 | 12 | ||
| 13 | </selector> | 13 | </selector> |
| 14 | \ No newline at end of file | 14 | \ No newline at end of file |
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> | 2 | <selector xmlns:android="http://schemas.android.com/apk/res/android"> |
| 3 | <!-- Non focused states --> | 3 | <!-- Non focused states --> |
| 4 | - <item android:drawable="@drawable/ic_videocam" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | ||
| 5 | - <item android:drawable="@drawable/ic_videocam_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | 4 | + <item android:drawable="@drawable/main_videocam" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> |
| 5 | + <item android:drawable="@drawable/main_videocam_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | ||
| 6 | <!-- Focused states --> | 6 | <!-- Focused states --> |
| 7 | - <item android:drawable="@drawable/ic_videocam_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | ||
| 8 | - <item android:drawable="@drawable/ic_videocam_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | 7 | + <item android:drawable="@drawable/main_videocam_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> |
| 8 | + <item android:drawable="@drawable/main_videocam_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | ||
| 9 | <!-- Pressed --> | 9 | <!-- Pressed --> |
| 10 | - <item android:drawable="@drawable/ic_videocam_sel" android:state_pressed="true" android:state_selected="true" /> | ||
| 11 | - <item android:drawable="@drawable/ic_videocam_sel" android:state_pressed="true" /> | 10 | + <item android:drawable="@drawable/main_videocam_sel" android:state_pressed="true" android:state_selected="true" /> |
| 11 | + <item android:drawable="@drawable/main_videocam_sel" android:state_pressed="true" /> | ||
| 12 | 12 | ||
| 13 | </selector> | 13 | </selector> |
| 14 | \ No newline at end of file | 14 | \ No newline at end of file |
| @@ -125,7 +125,7 @@ | @@ -125,7 +125,7 @@ | ||
| 125 | android:layout_below="@+id/end_view" | 125 | android:layout_below="@+id/end_view" |
| 126 | android:layout_centerHorizontal="true" | 126 | android:layout_centerHorizontal="true" |
| 127 | android:layout_marginTop="48dp" | 127 | android:layout_marginTop="48dp" |
| 128 | - android:background="@drawable/btn_record_end" | 128 | + android:background="@drawable/record_end" |
| 129 | android:onClick="onClick" | 129 | android:onClick="onClick" |
| 130 | android:text="知道了" | 130 | android:text="知道了" |
| 131 | android:textColor="@android:color/white" | 131 | android:textColor="@android:color/white" |
| @@ -162,7 +162,7 @@ | @@ -162,7 +162,7 @@ | ||
| 162 | android:onClick="onClick" | 162 | android:onClick="onClick" |
| 163 | android:padding="5dp" | 163 | android:padding="5dp" |
| 164 | android:scaleType="fitCenter" | 164 | android:scaleType="fitCenter" |
| 165 | - android:src="@{isShow.beautifulBtn ? @drawable/icon_record_meiyan_on : @drawable/icon_record_meiyan}" /> | 165 | + android:src="@{isShow.beautifulBtn ? @drawable/record_meiyan_on : @drawable/record_meiyan}" /> |
| 166 | 166 | ||
| 167 | <ImageButton | 167 | <ImageButton |
| 168 | android:id="@+id/btn_flip" | 168 | android:id="@+id/btn_flip" |
| @@ -172,7 +172,7 @@ | @@ -172,7 +172,7 @@ | ||
| 172 | android:onClick="onClick" | 172 | android:onClick="onClick" |
| 173 | android:padding="5dp" | 173 | android:padding="5dp" |
| 174 | android:scaleType="fitCenter" | 174 | android:scaleType="fitCenter" |
| 175 | - android:src="@drawable/icon_record_flip" /> | 175 | + android:src="@drawable/record_flip" /> |
| 176 | 176 | ||
| 177 | <ImageButton | 177 | <ImageButton |
| 178 | android:id="@+id/btn_flash" | 178 | android:id="@+id/btn_flash" |
| @@ -182,7 +182,7 @@ | @@ -182,7 +182,7 @@ | ||
| 182 | android:onClick="onClick" | 182 | android:onClick="onClick" |
| 183 | android:padding="5dp" | 183 | android:padding="5dp" |
| 184 | android:scaleType="fitCenter" | 184 | android:scaleType="fitCenter" |
| 185 | - android:src="@drawable/icon_record_flash" | 185 | + android:src="@drawable/record_flash" |
| 186 | android:visibility="@{isShow.flashBtn ? 0 : 8}" /> | 186 | android:visibility="@{isShow.flashBtn ? 0 : 8}" /> |
| 187 | 187 | ||
| 188 | <ImageButton | 188 | <ImageButton |
| @@ -195,7 +195,7 @@ | @@ -195,7 +195,7 @@ | ||
| 195 | android:onClick="onClick" | 195 | android:onClick="onClick" |
| 196 | android:padding="5dp" | 196 | android:padding="5dp" |
| 197 | android:scaleType="fitCenter" | 197 | android:scaleType="fitCenter" |
| 198 | - android:src="@drawable/icon_record_close" /> | 198 | + android:src="@drawable/record_close" /> |
| 199 | </LinearLayout> | 199 | </LinearLayout> |
| 200 | 200 | ||
| 201 | <Button | 201 | <Button |
| @@ -203,7 +203,7 @@ | @@ -203,7 +203,7 @@ | ||
| 203 | android:layout_width="wrap_content" | 203 | android:layout_width="wrap_content" |
| 204 | android:layout_height="wrap_content" | 204 | android:layout_height="wrap_content" |
| 205 | android:layout_centerInParent="true" | 205 | android:layout_centerInParent="true" |
| 206 | - android:background="@drawable/anchor_retry_nor" | 206 | + android:background="@drawable/record_retry_nor" |
| 207 | android:onClick="onClick" | 207 | android:onClick="onClick" |
| 208 | android:padding="5dp" | 208 | android:padding="5dp" |
| 209 | android:text="开始直播" | 209 | android:text="开始直播" |
| @@ -244,7 +244,7 @@ | @@ -244,7 +244,7 @@ | ||
| 244 | android:layout_below="@+id/auto_reconnect_msg" | 244 | android:layout_below="@+id/auto_reconnect_msg" |
| 245 | android:layout_centerHorizontal="true" | 245 | android:layout_centerHorizontal="true" |
| 246 | android:layout_marginTop="8dp" | 246 | android:layout_marginTop="8dp" |
| 247 | - android:background="@drawable/anchor_retry_nor" | 247 | + android:background="@drawable/record_retry_nor" |
| 248 | android:onClick="onClick" | 248 | android:onClick="onClick" |
| 249 | android:paddingBottom="8dp" | 249 | android:paddingBottom="8dp" |
| 250 | android:paddingLeft="15dp" | 250 | android:paddingLeft="15dp" |
| @@ -5,15 +5,14 @@ | @@ -5,15 +5,14 @@ | ||
| 5 | > | 5 | > |
| 6 | 6 | ||
| 7 | <LinearLayout | 7 | <LinearLayout |
| 8 | - | ||
| 9 | android:layout_width="match_parent" | 8 | android:layout_width="match_parent" |
| 10 | android:layout_height="match_parent" | 9 | android:layout_height="match_parent" |
| 11 | android:orientation="vertical"> | 10 | android:orientation="vertical"> |
| 12 | 11 | ||
| 13 | <RelativeLayout | 12 | <RelativeLayout |
| 14 | android:layout_width="match_parent" | 13 | android:layout_width="match_parent" |
| 15 | - android:layout_height="150dp" | ||
| 16 | - > | 14 | + android:layout_height="48dp"> |
| 15 | + | ||
| 17 | <TextView | 16 | <TextView |
| 18 | android:layout_width="wrap_content" | 17 | android:layout_width="wrap_content" |
| 19 | android:layout_height="wrap_content" | 18 | android:layout_height="wrap_content" |
| @@ -21,100 +20,99 @@ | @@ -21,100 +20,99 @@ | ||
| 21 | android:singleLine="true" | 20 | android:singleLine="true" |
| 22 | android:text="我的" | 21 | android:text="我的" |
| 23 | android:textColor="@color/config_black_color" | 22 | android:textColor="@color/config_black_color" |
| 24 | - android:textSize="22sp" | ||
| 25 | - /> | 23 | + android:textSize="22sp" /> |
| 26 | 24 | ||
| 27 | 25 | ||
| 28 | </RelativeLayout> | 26 | </RelativeLayout> |
| 27 | + | ||
| 29 | <View | 28 | <View |
| 30 | android:layout_width="match_parent" | 29 | android:layout_width="match_parent" |
| 31 | - android:layout_marginBottom="@dimen/_20px" | ||
| 32 | android:layout_height="1px" | 30 | android:layout_height="1px" |
| 31 | + android:layout_marginBottom="@dimen/_20px" | ||
| 33 | android:background="@color/gray_line_color" /> | 32 | android:background="@color/gray_line_color" /> |
| 34 | 33 | ||
| 35 | 34 | ||
| 36 | - <RelativeLayout | ||
| 37 | - android:id="@+id/config_header" | ||
| 38 | - android:layout_width="fill_parent" | ||
| 39 | - android:layout_height="85dp" | ||
| 40 | - android:gravity="center_vertical" | ||
| 41 | - style="@style/list_item_style"> | ||
| 42 | - | ||
| 43 | - <com.cnlive.gundam.user.view.CircleImageView | ||
| 44 | - android:id="@+id/head_img" | ||
| 45 | - android:layout_width="55dip" | ||
| 46 | - android:layout_height="55dip" | ||
| 47 | - android:layout_centerVertical="true" | ||
| 48 | - android:src="@drawable/cnlive_user_header" | ||
| 49 | - cn:border_color="@android:color/transparent" | ||
| 50 | - android:layout_marginLeft="11dp" | ||
| 51 | - android:layout_marginRight="16dp" /> | ||
| 52 | - | ||
| 53 | - <LinearLayout | ||
| 54 | - android:layout_width="wrap_content" | ||
| 55 | - android:layout_height="wrap_content" | ||
| 56 | - android:layout_centerVertical="true" | ||
| 57 | - android:layout_toRightOf="@+id/head_img" | ||
| 58 | - android:orientation="vertical" | ||
| 59 | - android:layout_toLeftOf="@+id/next"> | ||
| 60 | - | ||
| 61 | - <TextView | ||
| 62 | - android:id="@+id/tv_nickname" | ||
| 63 | - android:layout_width="wrap_content" | ||
| 64 | - android:layout_height="wrap_content" | ||
| 65 | - android:layout_margin="3dp" | ||
| 66 | - android:gravity="center_vertical" | ||
| 67 | - android:singleLine="true" | ||
| 68 | - android:text="@string/click_login" | ||
| 69 | - android:textColor="@color/config_black_color" | ||
| 70 | - android:textSize="17sp" /> | ||
| 71 | - | ||
| 72 | - </LinearLayout> | 35 | + <RelativeLayout |
| 36 | + android:id="@+id/config_header" | ||
| 37 | + style="@style/list_item_style" | ||
| 38 | + android:layout_width="fill_parent" | ||
| 39 | + android:layout_height="85dp" | ||
| 40 | + android:gravity="center_vertical"> | ||
| 41 | + | ||
| 42 | + <com.cnlive.gundam.user.view.CircleImageView | ||
| 43 | + android:id="@+id/head_img" | ||
| 44 | + android:layout_width="55dip" | ||
| 45 | + android:layout_height="55dip" | ||
| 46 | + android:layout_centerVertical="true" | ||
| 47 | + android:layout_marginLeft="11dp" | ||
| 48 | + android:layout_marginRight="16dp" | ||
| 49 | + cn:border_color="@android:color/transparent" | ||
| 50 | + android:src="@drawable/cnlive_user_header" /> | ||
| 73 | 51 | ||
| 74 | - <ImageView | ||
| 75 | - android:id="@+id/next" | ||
| 76 | - android:layout_width="@dimen/next_image_width" | ||
| 77 | - android:layout_height="@dimen/next_image_height" | ||
| 78 | - android:layout_alignParentRight="true" | ||
| 79 | - android:layout_centerVertical="true" | ||
| 80 | - android:layout_marginRight="@dimen/next_image_margin_right" | ||
| 81 | - android:contentDescription="@null" | ||
| 82 | - android:src="@drawable/btn_channel_more" /> | ||
| 83 | - </RelativeLayout> | 52 | + <LinearLayout |
| 53 | + android:layout_width="wrap_content" | ||
| 54 | + android:layout_height="wrap_content" | ||
| 55 | + android:layout_centerVertical="true" | ||
| 56 | + android:layout_toLeftOf="@+id/next" | ||
| 57 | + android:layout_toRightOf="@+id/head_img" | ||
| 58 | + android:orientation="vertical"> | ||
| 84 | 59 | ||
| 60 | + <TextView | ||
| 61 | + android:id="@+id/tv_nickname" | ||
| 62 | + android:layout_width="wrap_content" | ||
| 63 | + android:layout_height="wrap_content" | ||
| 64 | + android:layout_margin="3dp" | ||
| 65 | + android:gravity="center_vertical" | ||
| 66 | + android:singleLine="true" | ||
| 67 | + android:text="@string/click_login" | ||
| 68 | + android:textColor="@color/config_black_color" | ||
| 69 | + android:textSize="17sp" /> | ||
| 85 | 70 | ||
| 71 | + </LinearLayout> | ||
| 86 | 72 | ||
| 73 | + <ImageView | ||
| 74 | + android:id="@+id/next" | ||
| 75 | + android:layout_width="@dimen/next_image_width" | ||
| 76 | + android:layout_height="@dimen/next_image_height" | ||
| 77 | + android:layout_alignParentRight="true" | ||
| 78 | + android:layout_centerVertical="true" | ||
| 79 | + android:layout_marginRight="@dimen/next_image_margin_right" | ||
| 80 | + android:contentDescription="@null" | ||
| 81 | + android:src="@drawable/btn_channel_more" /> | ||
| 82 | + </RelativeLayout> | ||
| 87 | 83 | ||
| 88 | 84 | ||
| 89 | <View | 85 | <View |
| 90 | android:layout_width="match_parent" | 86 | android:layout_width="match_parent" |
| 91 | android:layout_height="1px" | 87 | android:layout_height="1px" |
| 92 | android:background="@color/gray_line_color" /> | 88 | android:background="@color/gray_line_color" /> |
| 89 | + | ||
| 93 | <RelativeLayout | 90 | <RelativeLayout |
| 91 | + android:id="@+id/message" | ||
| 92 | + style="@style/list_item_style" | ||
| 94 | android:layout_width="match_parent" | 93 | android:layout_width="match_parent" |
| 95 | android:layout_height="50dp" | 94 | android:layout_height="50dp" |
| 96 | - android:layout_marginTop="@dimen/_20px" | ||
| 97 | - android:id="@+id/message" | ||
| 98 | - style="@style/list_item_style"> | 95 | + android:layout_marginTop="@dimen/_20px"> |
| 99 | 96 | ||
| 100 | <ImageView | 97 | <ImageView |
| 98 | + android:id="@+id/ic_setting_opinion" | ||
| 101 | android:layout_width="30dp" | 99 | android:layout_width="30dp" |
| 102 | android:layout_height="30dp" | 100 | android:layout_height="30dp" |
| 103 | - android:layout_marginLeft="@dimen/_20px" | ||
| 104 | android:layout_centerVertical="true" | 101 | android:layout_centerVertical="true" |
| 105 | - android:id="@+id/ic_setting_opinion" | ||
| 106 | - android:src="@drawable/ic_setting_opinion"/> | 102 | + android:layout_marginLeft="@dimen/_20px" |
| 103 | + android:src="@drawable/ic_setting_opinion" /> | ||
| 104 | + | ||
| 107 | <TextView | 105 | <TextView |
| 108 | android:layout_width="wrap_content" | 106 | android:layout_width="wrap_content" |
| 109 | android:layout_height="wrap_content" | 107 | android:layout_height="wrap_content" |
| 110 | android:layout_centerVertical="true" | 108 | android:layout_centerVertical="true" |
| 109 | + android:layout_marginLeft="30dp" | ||
| 111 | android:layout_toRightOf="@+id/ic_setting_opinion" | 110 | android:layout_toRightOf="@+id/ic_setting_opinion" |
| 112 | android:gravity="center_vertical" | 111 | android:gravity="center_vertical" |
| 113 | android:singleLine="true" | 112 | android:singleLine="true" |
| 114 | android:text="意见反馈" | 113 | android:text="意见反馈" |
| 115 | android:textColor="@color/config_black_color" | 114 | android:textColor="@color/config_black_color" |
| 116 | - android:layout_marginLeft="30dp" | ||
| 117 | - android:textSize="17sp"/> | 115 | + android:textSize="17sp" /> |
| 118 | 116 | ||
| 119 | 117 | ||
| 120 | <ImageView | 118 | <ImageView |
| @@ -37,70 +37,4 @@ | @@ -37,70 +37,4 @@ | ||
| 37 | <string name="request_state_error">获取活动状态失败</string> | 37 | <string name="request_state_error">获取活动状态失败</string> |
| 38 | <string name="request_state_play_error">此活动状态无法播放</string> | 38 | <string name="request_state_play_error">此活动状态无法播放</string> |
| 39 | 39 | ||
| 40 | - | ||
| 41 | - <string name="net_connect_toast">"你好像掉线了"</string> | ||
| 42 | - | ||
| 43 | - //我的 | ||
| 44 | - <string name="main_tab_config">我的</string> | ||
| 45 | - <string name="click_login">点击登录</string> | ||
| 46 | - <string name="login_china_coin">登录就送中国币哟</string> | ||
| 47 | - <string name="my_config_money_desc">中国币、兑换码、金额</string> | ||
| 48 | - <string name="logout">注销</string> | ||
| 49 | - | ||
| 50 | - //登录页面 | ||
| 51 | - <string name="user_login_account">账号:</string> | ||
| 52 | - <string name="user_login_account_hint">Email/手机号码</string> | ||
| 53 | - <string name="user_login_code">密码:</string> | ||
| 54 | - <string name="user_login_code_hint">6–20位字母或数字</string> | ||
| 55 | - <string name="user_login_recall_code">忘记密码?</string> | ||
| 56 | - <string name="string_fast_access">短信验证登录</string> | ||
| 57 | - <string name="user_login">登录</string> | ||
| 58 | - <string name="user_login_third_part_login">第三方账号登录</string> | ||
| 59 | - <string name="third_login_sina">微博</string> | ||
| 60 | - <string name="third_login_qq">QQ</string> | ||
| 61 | - <string name="third_login_weixin">微信</string> | ||
| 62 | - | ||
| 63 | - //注册页面 | ||
| 64 | - <string name="register_mobile_hint">请输入您的手机号</string> | ||
| 65 | - <string name="getmobile_identify_code">获取验证码</string> | ||
| 66 | - <string name="register_mobile_keycode_hint">请输入您收到的验证码</string> | ||
| 67 | - <string name="register_password_hint">请设置密码:6–20位字母或数字</string> | ||
| 68 | - <string name="register_show_password">显示密码</string> | ||
| 69 | - <string name="register_and_agree">我已阅读并同意</string> | ||
| 70 | - <string name="register_btn">注册</string> | ||
| 71 | - | ||
| 72 | - //找回密码页面 | ||
| 73 | - <string name="find_password_btn">找回密码</string> | ||
| 74 | - <string name="find_password_hint">请确认密码:6–20位字母或数字</string> | ||
| 75 | - <string name="save_btn">保存</string> | ||
| 76 | - | ||
| 77 | - //昵称修改页面 | ||
| 78 | - <string name="user_input_nickname">请输入昵称</string> | ||
| 79 | - | ||
| 80 | - //手机号修改页面 | ||
| 81 | - <string name="register_mobile">手机号:</string> | ||
| 82 | - <string name="user_personal_telephone_hint">手机号码</string> | ||
| 83 | - <string name="register_mobile_keycode">验证码:</string> | ||
| 84 | - <string name="hint_6_numbers_code">6位数字验证码</string> | ||
| 85 | - | ||
| 86 | - //邮箱修改页面 | ||
| 87 | - <string name="email_notify">修改后,您输入的邮箱将会收到确认邮件,请按邮件中的说明去完成验证,谢谢!</string> | ||
| 88 | - | ||
| 89 | - //关于我们页面 | ||
| 90 | - <string name="about_us_visit">访问视讯中国官网</string> | ||
| 91 | - <string name="about_us_call_phone">拨打客服电话</string> | ||
| 92 | - <string name="about_us_disclaimer">免责声明</string> | ||
| 93 | - <string name="about_us_company_name">北京中投视讯文化传媒股份有限公司</string> | ||
| 94 | - | ||
| 95 | - //分享 | ||
| 96 | - <string name="toast_msg_share_success">分享成功!</string> | ||
| 97 | - <string name="toast_msg_share_fail">分享失败,请再试一次</string> | ||
| 98 | - <string name="toast_msg_share_cancel">取消分享</string> | ||
| 99 | - <string name="share_program_download_targetUrl"> http://www.cnlive.com/web/guide.jsp</string> | ||
| 100 | - | ||
| 101 | - //AccountManager用户管理 | ||
| 102 | - <string name="ACCOUNT_TYPE">com.cnlive.libs.AccountType</string> | ||
| 103 | - <string name="ACCOUNT_LABEL">@string/app_name</string> | ||
| 104 | - | ||
| 105 | - <string name="verified_url" formatted="false">https://mobile.cnlive.com/CnliveMobile/web/review/review.jsp?sid=%s&plat=a&appId=%s </string> | ||
| 106 | </resources> | 40 | </resources> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<account-authenticator xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 3 | + android:accountType="@string/ACCOUNT_TYPE" | ||
| 4 | + android:icon="@mipmap/ic_launcher" | ||
| 5 | + android:smallIcon="@mipmap/ic_launcher" | ||
| 6 | + android:label="@string/ACCOUNT_LABEL" | ||
| 7 | + android:accountPreferences="@xml/account_preferences" /> | ||
| 0 | \ No newline at end of file | 8 | \ No newline at end of file |
| @@ -23,10 +23,6 @@ android { | @@ -23,10 +23,6 @@ android { | ||
| 23 | 23 | ||
| 24 | dependencies { | 24 | dependencies { |
| 25 | compile fileTree(dir: 'libs', include: ['*.jar']) | 25 | compile fileTree(dir: 'libs', include: ['*.jar']) |
| 26 | - androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
| 27 | - exclude group: 'com.android.support', module: 'support-annotations' | ||
| 28 | - }) | ||
| 29 | compile 'com.android.support:appcompat-v7:26.+' | 26 | compile 'com.android.support:appcompat-v7:26.+' |
| 30 | - testCompile 'junit:junit:4.12' | ||
| 31 | 27 | ||
| 32 | } | 28 | } |
| 1 | -package cnlive.com.myuser; | ||
| 2 | - | ||
| 3 | -import android.content.Context; | ||
| 4 | -import android.support.test.InstrumentationRegistry; | ||
| 5 | -import android.support.test.runner.AndroidJUnit4; | ||
| 6 | - | ||
| 7 | -import org.junit.Test; | ||
| 8 | -import org.junit.runner.RunWith; | ||
| 9 | - | ||
| 10 | -import static org.junit.Assert.*; | ||
| 11 | - | ||
| 12 | -/** | ||
| 13 | - * Instrumentation test, which will execute on an Android device. | ||
| 14 | - * | ||
| 15 | - * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
| 16 | - */ | ||
| 17 | -@RunWith(AndroidJUnit4.class) | ||
| 18 | -public class ExampleInstrumentedTest { | ||
| 19 | - @Test | ||
| 20 | - public void useAppContext() throws Exception { | ||
| 21 | - // Context of the app under test. | ||
| 22 | - Context appContext = InstrumentationRegistry.getTargetContext(); | ||
| 23 | - | ||
| 24 | - assertEquals("cnlive.com.myuser.test", appContext.getPackageName()); | ||
| 25 | - } | ||
| 26 | -} |
6.52 KB
| 1 | <?xml version="1.0" encoding="utf-8"?> | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <resources> | 2 | <resources> |
| 3 | - <color name="colorPrimary">#3F51B5</color> | ||
| 4 | - <color name="colorPrimaryDark">#303F9F</color> | ||
| 5 | - <color name="colorAccent">#FF4081</color> | ||
| 6 | 3 | ||
| 7 | <color name="gray_line_color">#dcdcdc</color> | 4 | <color name="gray_line_color">#dcdcdc</color> |
| 8 | <color name="config_black_color">#323333</color> | 5 | <color name="config_black_color">#323333</color> |
| @@ -36,6 +36,8 @@ | @@ -36,6 +36,8 @@ | ||
| 36 | <string name="find_password_hint">请确认密码:6–20位字母或数字</string> | 36 | <string name="find_password_hint">请确认密码:6–20位字母或数字</string> |
| 37 | <string name="save_btn">保存</string> | 37 | <string name="save_btn">保存</string> |
| 38 | 38 | ||
| 39 | + <string name="ACCOUNT_TYPE">com.cnlive.libs.AccountType</string> | ||
| 40 | + <string name="ACCOUNT_LABEL">@string/app_name</string> | ||
| 39 | 41 | ||
| 40 | 42 | ||
| 41 | 43 |
| 1 | <resources> | 1 | <resources> |
| 2 | 2 | ||
| 3 | - <!-- Base application theme. --> | ||
| 4 | - <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar"> | ||
| 5 | - <!-- Customize your theme here. --> | ||
| 6 | - <item name="colorPrimary">@color/colorPrimary</item> | ||
| 7 | - <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
| 8 | - <item name="colorAccent">@color/colorAccent</item> | ||
| 9 | - </style> | ||
| 10 | 3 | ||
| 11 | <style name="ActionbarTitleStyle"> | 4 | <style name="ActionbarTitleStyle"> |
| 12 | <item name="android:textSize">22sp</item> | 5 | <item name="android:textSize">22sp</item> |
| @@ -81,11 +74,4 @@ | @@ -81,11 +74,4 @@ | ||
| 81 | <item name="android:windowCloseOnTouchOutside">true</item> | 74 | <item name="android:windowCloseOnTouchOutside">true</item> |
| 82 | </style> | 75 | </style> |
| 83 | 76 | ||
| 84 | - <style name="ActionBar" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
| 85 | - <!-- Customize your theme here. --> | ||
| 86 | - <item name="colorPrimary">@color/colorPrimary</item> | ||
| 87 | - <item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
| 88 | - <item name="colorAccent">@color/colorAccent</item> | ||
| 89 | - <item name="android:windowContentOverlay">@null</item> | ||
| 90 | - </style> | ||
| 91 | </resources> | 77 | </resources> |
| 1 | -package cnlive.com.myuser; | ||
| 2 | - | ||
| 3 | -import org.junit.Test; | ||
| 4 | - | ||
| 5 | -import static org.junit.Assert.*; | ||
| 6 | - | ||
| 7 | -/** | ||
| 8 | - * Example local unit test, which will execute on the development machine (host). | ||
| 9 | - * | ||
| 10 | - * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
| 11 | - */ | ||
| 12 | -public class ExampleUnitTest { | ||
| 13 | - @Test | ||
| 14 | - public void addition_isCorrect() throws Exception { | ||
| 15 | - assertEquals(4, 2 + 2); | ||
| 16 | - } | ||
| 17 | -} | ||
| 18 | \ No newline at end of file | 0 | \ No newline at end of file |