Commit 97c6d95a8c1ad653b52b2246717f054b6670652a
0 parents
add all
Showing
100 changed files
with
4521 additions
and
0 deletions
Too many changes to show.
To preserve performance only 100 of 3871 files are displayed.
.gitignore
0 → 100644
.idea/compiler.xml
0 → 100644
| 1 | +++ a/.idea/compiler.xml | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project version="4"> | |
| 3 | + <component name="CompilerConfiguration"> | |
| 4 | + <resourceExtensions /> | |
| 5 | + <wildcardResourcePatterns> | |
| 6 | + <entry name="!?*.java" /> | |
| 7 | + <entry name="!?*.form" /> | |
| 8 | + <entry name="!?*.class" /> | |
| 9 | + <entry name="!?*.groovy" /> | |
| 10 | + <entry name="!?*.scala" /> | |
| 11 | + <entry name="!?*.flex" /> | |
| 12 | + <entry name="!?*.kt" /> | |
| 13 | + <entry name="!?*.clj" /> | |
| 14 | + <entry name="!?*.aj" /> | |
| 15 | + </wildcardResourcePatterns> | |
| 16 | + <annotationProcessing> | |
| 17 | + <profile default="true" name="Default" enabled="false"> | |
| 18 | + <processorPath useClasspath="true" /> | |
| 19 | + </profile> | |
| 20 | + </annotationProcessing> | |
| 21 | + </component> | |
| 22 | +</project> | |
| 0 | 23 | \ No newline at end of file | ... | ... |
.idea/copyright/profiles_settings.xml
0 → 100644
.idea/gradle.xml
0 → 100644
| 1 | +++ a/.idea/gradle.xml | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project version="4"> | |
| 3 | + <component name="GradleSettings"> | |
| 4 | + <option name="linkedExternalProjectsSettings"> | |
| 5 | + <GradleProjectSettings> | |
| 6 | + <option name="distributionType" value="DEFAULT_WRAPPED" /> | |
| 7 | + <option name="externalProjectPath" value="$PROJECT_DIR$" /> | |
| 8 | + <option name="modules"> | |
| 9 | + <set> | |
| 10 | + <option value="$PROJECT_DIR$" /> | |
| 11 | + <option value="$PROJECT_DIR$/app" /> | |
| 12 | + </set> | |
| 13 | + </option> | |
| 14 | + <option name="resolveModulePerSourceSet" value="false" /> | |
| 15 | + </GradleProjectSettings> | |
| 16 | + </option> | |
| 17 | + </component> | |
| 18 | +</project> | |
| 0 | 19 | \ No newline at end of file | ... | ... |
.idea/misc.xml
0 → 100644
| 1 | +++ a/.idea/misc.xml | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project version="4"> | |
| 3 | + <component name="EntryPointsManager"> | |
| 4 | + <entry_points version="2.0" /> | |
| 5 | + </component> | |
| 6 | + <component name="NullableNotNullManager"> | |
| 7 | + <option name="myDefaultNullable" value="android.support.annotation.Nullable" /> | |
| 8 | + <option name="myDefaultNotNull" value="android.support.annotation.NonNull" /> | |
| 9 | + <option name="myNullables"> | |
| 10 | + <value> | |
| 11 | + <list size="4"> | |
| 12 | + <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" /> | |
| 13 | + <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" /> | |
| 14 | + <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" /> | |
| 15 | + <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" /> | |
| 16 | + </list> | |
| 17 | + </value> | |
| 18 | + </option> | |
| 19 | + <option name="myNotNulls"> | |
| 20 | + <value> | |
| 21 | + <list size="4"> | |
| 22 | + <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" /> | |
| 23 | + <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" /> | |
| 24 | + <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" /> | |
| 25 | + <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" /> | |
| 26 | + </list> | |
| 27 | + </value> | |
| 28 | + </option> | |
| 29 | + </component> | |
| 30 | + <component name="ProjectLevelVcsManager" settingsEditedManually="false"> | |
| 31 | + <OptionsSetting value="true" id="Add" /> | |
| 32 | + <OptionsSetting value="true" id="Remove" /> | |
| 33 | + <OptionsSetting value="true" id="Checkout" /> | |
| 34 | + <OptionsSetting value="true" id="Update" /> | |
| 35 | + <OptionsSetting value="true" id="Status" /> | |
| 36 | + <OptionsSetting value="true" id="Edit" /> | |
| 37 | + <ConfirmationsSetting value="0" id="Add" /> | |
| 38 | + <ConfirmationsSetting value="0" id="Remove" /> | |
| 39 | + </component> | |
| 40 | + <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
| 41 | + <output url="file://$PROJECT_DIR$/build/classes" /> | |
| 42 | + </component> | |
| 43 | + <component name="ProjectType"> | |
| 44 | + <option name="id" value="Android" /> | |
| 45 | + </component> | |
| 46 | + <component name="SvnBranchConfigurationManager"> | |
| 47 | + <option name="myConfigurationMap"> | |
| 48 | + <map> | |
| 49 | + <entry key="$PROJECT_DIR$"> | |
| 50 | + <value> | |
| 51 | + <SvnBranchConfiguration> | |
| 52 | + <option name="branchUrls"> | |
| 53 | + <list> | |
| 54 | + <option value="https://192.168.4.240/svn/android/Me+SH/branches" /> | |
| 55 | + <option value="https://192.168.4.240/svn/android/Me+SH/tags" /> | |
| 56 | + </list> | |
| 57 | + </option> | |
| 58 | + <option name="trunkUrl" value="https://192.168.4.240/svn/android/Me+SH/trunk" /> | |
| 59 | + </SvnBranchConfiguration> | |
| 60 | + </value> | |
| 61 | + </entry> | |
| 62 | + </map> | |
| 63 | + </option> | |
| 64 | + <option name="mySupportsUserInfoFilter" value="true" /> | |
| 65 | + </component> | |
| 66 | +</project> | |
| 0 | 67 | \ No newline at end of file | ... | ... |
.idea/modules.xml
0 → 100644
| 1 | +++ a/.idea/modules.xml | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project version="4"> | |
| 3 | + <component name="ProjectModuleManager"> | |
| 4 | + <modules> | |
| 5 | + <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" /> | |
| 6 | + <module fileurl="file://$PROJECT_DIR$/studio me.iml" filepath="$PROJECT_DIR$/studio me.iml" /> | |
| 7 | + </modules> | |
| 8 | + </component> | |
| 9 | +</project> | |
| 0 | 10 | \ No newline at end of file | ... | ... |
.idea/runConfigurations.xml
0 → 100644
| 1 | +++ a/.idea/runConfigurations.xml | |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<project version="4"> | |
| 3 | + <component name="RunConfigurationProducerService"> | |
| 4 | + <option name="ignoredProducers"> | |
| 5 | + <set> | |
| 6 | + <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" /> | |
| 7 | + <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" /> | |
| 8 | + <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" /> | |
| 9 | + </set> | |
| 10 | + </option> | |
| 11 | + </component> | |
| 12 | +</project> | |
| 0 | 13 | \ No newline at end of file | ... | ... |
.idea/vcs.xml
0 → 100644
.svn/entries
0 → 100644
.svn/format
0 → 100644
.svn/pristine/00/001c748653e44c9551cba700c7d36a7e8a442029.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/00/001c748653e44c9551cba700c7d36a7e8a442029.svn-base | |
| 1 | +package com.ivt.android.me.constant; | |
| 2 | + | |
| 3 | +import org.jivesoftware.smack.provider.PrivacyProvider; | |
| 4 | +import org.jivesoftware.smack.provider.ProviderManager; | |
| 5 | +import org.jivesoftware.smackx.GroupChatInvitation; | |
| 6 | +import org.jivesoftware.smackx.PrivateDataManager; | |
| 7 | +import org.jivesoftware.smackx.bytestreams.socks5.provider.BytestreamsProvider; | |
| 8 | +import org.jivesoftware.smackx.packet.ChatStateExtension; | |
| 9 | +import org.jivesoftware.smackx.packet.LastActivity; | |
| 10 | +import org.jivesoftware.smackx.packet.OfflineMessageInfo; | |
| 11 | +import org.jivesoftware.smackx.packet.OfflineMessageRequest; | |
| 12 | +import org.jivesoftware.smackx.packet.SharedGroupsInfo; | |
| 13 | +import org.jivesoftware.smackx.provider.AdHocCommandDataProvider; | |
| 14 | +import org.jivesoftware.smackx.provider.DataFormProvider; | |
| 15 | +import org.jivesoftware.smackx.provider.DelayInformationProvider; | |
| 16 | +import org.jivesoftware.smackx.provider.DiscoverInfoProvider; | |
| 17 | +import org.jivesoftware.smackx.provider.DiscoverItemsProvider; | |
| 18 | +import org.jivesoftware.smackx.provider.MUCAdminProvider; | |
| 19 | +import org.jivesoftware.smackx.provider.MUCOwnerProvider; | |
| 20 | +import org.jivesoftware.smackx.provider.MUCUserProvider; | |
| 21 | +import org.jivesoftware.smackx.provider.MessageEventProvider; | |
| 22 | +import org.jivesoftware.smackx.provider.MultipleAddressesProvider; | |
| 23 | +import org.jivesoftware.smackx.provider.RosterExchangeProvider; | |
| 24 | +import org.jivesoftware.smackx.provider.StreamInitiationProvider; | |
| 25 | +import org.jivesoftware.smackx.provider.VCardProvider; | |
| 26 | +import org.jivesoftware.smackx.provider.XHTMLExtensionProvider; | |
| 27 | +import org.jivesoftware.smackx.search.UserSearch; | |
| 28 | + | |
| 29 | +/** | |
| 30 | + * | |
| 31 | + * @author YeMint 2016-8-10 XmppProvider.java TODO 最后修改人 :无 | |
| 32 | + */ | |
| 33 | +public class XmppProvider { | |
| 34 | + public final static ProviderManager pm = ProviderManager.getInstance(); | |
| 35 | + | |
| 36 | + public static void configureConnection() { | |
| 37 | + pm.addIQProvider("query", "jabber:iq:private", | |
| 38 | + new PrivateDataManager.PrivateDataIQProvider()); | |
| 39 | + try { | |
| 40 | + pm.addIQProvider("query", "jabber:iq:time", | |
| 41 | + Class.forName("org.jivesoftware.smackx.packet.Time")); | |
| 42 | + } catch (Exception e) { | |
| 43 | + e.printStackTrace(); | |
| 44 | + } | |
| 45 | + // Roster Exchange | |
| 46 | + pm.addExtensionProvider("x", "jabber:x:roster", | |
| 47 | + new RosterExchangeProvider()); | |
| 48 | + // Message Events | |
| 49 | + pm.addExtensionProvider("x", "jabber:x:event", | |
| 50 | + new MessageEventProvider()); | |
| 51 | + // Chat State | |
| 52 | + pm.addExtensionProvider("active", | |
| 53 | + "http://jabber.org/protocol/chatstates", | |
| 54 | + new ChatStateExtension.Provider()); | |
| 55 | + pm.addExtensionProvider("composing", | |
| 56 | + "http://jabber.org/protocol/chatstates", | |
| 57 | + new ChatStateExtension.Provider()); | |
| 58 | + pm.addExtensionProvider("paused", | |
| 59 | + "http://jabber.org/protocol/chatstates", | |
| 60 | + new ChatStateExtension.Provider()); | |
| 61 | + pm.addExtensionProvider("inactive", | |
| 62 | + "http://jabber.org/protocol/chatstates", | |
| 63 | + new ChatStateExtension.Provider()); | |
| 64 | + pm.addExtensionProvider("gone", | |
| 65 | + "http://jabber.org/protocol/chatstates", | |
| 66 | + new ChatStateExtension.Provider()); | |
| 67 | + // XHTML | |
| 68 | + pm.addExtensionProvider("html", "http://jabber.org/protocol/xhtml-im", | |
| 69 | + new XHTMLExtensionProvider()); | |
| 70 | + // Group Chat Invitations | |
| 71 | + pm.addExtensionProvider("x", "jabber:x:conference", | |
| 72 | + new GroupChatInvitation.Provider()); | |
| 73 | + // Service Discovery # Items //解析房间列表 | |
| 74 | + pm.addIQProvider("query", "http://jabber.org/protocol/disco#items", | |
| 75 | + new DiscoverItemsProvider()); | |
| 76 | + // Service Discovery # Info //某一个房间的信息 | |
| 77 | + pm.addIQProvider("query", "http://jabber.org/protocol/disco#info", | |
| 78 | + new DiscoverInfoProvider()); | |
| 79 | + // Data Forms | |
| 80 | + pm.addExtensionProvider("x", "jabber:x:data", new DataFormProvider()); | |
| 81 | + // MUC User | |
| 82 | + pm.addExtensionProvider("x", "http://jabber.org/protocol/muc#user", | |
| 83 | + new MUCUserProvider()); | |
| 84 | + // MUC Admin | |
| 85 | + pm.addIQProvider("query", "http://jabber.org/protocol/muc#admin", | |
| 86 | + new MUCAdminProvider()); | |
| 87 | + // MUC Owner | |
| 88 | + pm.addIQProvider("query", "http://jabber.org/protocol/muc#owner", | |
| 89 | + new MUCOwnerProvider()); | |
| 90 | + // Delayed Delivery | |
| 91 | + pm.addExtensionProvider("x", "jabber:x:delay", | |
| 92 | + new DelayInformationProvider()); | |
| 93 | + // Version | |
| 94 | + try { | |
| 95 | + pm.addIQProvider("query", "jabber:iq:version", | |
| 96 | + Class.forName("org.jivesoftware.smackx.packet.Version")); | |
| 97 | + } catch (ClassNotFoundException e) { | |
| 98 | + // Not sure what's happening here. | |
| 99 | + } | |
| 100 | + // VCard | |
| 101 | + pm.addIQProvider("vCard", "vcard-temp", new VCardProvider()); | |
| 102 | + // Offline Message Requests | |
| 103 | + pm.addIQProvider("offline", "http://jabber.org/protocol/offline", | |
| 104 | + new OfflineMessageRequest.Provider()); | |
| 105 | + // Offline Message Indicator | |
| 106 | + pm.addExtensionProvider("offline", | |
| 107 | + "http://jabber.org/protocol/offline", | |
| 108 | + new OfflineMessageInfo.Provider()); | |
| 109 | + // Last Activity | |
| 110 | + pm.addIQProvider("query", "jabber:iq:last", new LastActivity.Provider()); | |
| 111 | + // User Search | |
| 112 | + pm.addIQProvider("query", "jabber:iq:search", new UserSearch.Provider()); | |
| 113 | + // SharedGroupsInfo | |
| 114 | + pm.addIQProvider("sharedgroup", | |
| 115 | + "http://www.jivesoftware.org/protocol/sharedgroup", | |
| 116 | + new SharedGroupsInfo.Provider()); | |
| 117 | + // JEP-33: Extended Stanza Addressing | |
| 118 | + pm.addExtensionProvider("addresses", | |
| 119 | + "http://jabber.org/protocol/address", | |
| 120 | + new MultipleAddressesProvider()); | |
| 121 | + pm.addIQProvider("si", "http://jabber.org/protocol/si", | |
| 122 | + new StreamInitiationProvider()); | |
| 123 | + pm.addIQProvider("query", "http://jabber.org/protocol/bytestreams", | |
| 124 | + new BytestreamsProvider()); | |
| 125 | + pm.addIQProvider("query", "jabber:iq:privacy", new PrivacyProvider()); | |
| 126 | + pm.addIQProvider("command", "http://jabber.org/protocol/commands", | |
| 127 | + new AdHocCommandDataProvider()); | |
| 128 | + pm.addExtensionProvider("malformed-action", | |
| 129 | + "http://jabber.org/protocol/commands", | |
| 130 | + new AdHocCommandDataProvider.MalformedActionError()); | |
| 131 | + pm.addExtensionProvider("bad-locale", | |
| 132 | + "http://jabber.org/protocol/commands", | |
| 133 | + new AdHocCommandDataProvider.BadLocaleError()); | |
| 134 | + pm.addExtensionProvider("bad-payload", | |
| 135 | + "http://jabber.org/protocol/commands", | |
| 136 | + new AdHocCommandDataProvider.BadPayloadError()); | |
| 137 | + pm.addExtensionProvider("bad-sessionid", | |
| 138 | + "http://jabber.org/protocol/commands", | |
| 139 | + new AdHocCommandDataProvider.BadSessionIDError()); | |
| 140 | + pm.addExtensionProvider("session-expired", | |
| 141 | + "http://jabber.org/protocol/commands", | |
| 142 | + new AdHocCommandDataProvider.SessionExpiredError()); | |
| 143 | + } | |
| 144 | +} | ... | ... |
.svn/pristine/00/006826b268fb837c7b9afa085a0da9ef72397546.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/00/006826b268fb837c7b9afa085a0da9ef72397546.svn-base | |
| 1 | +package com.ivt.android.me.bean; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Min消息json实体类 | |
| 5 | + * | |
| 6 | + * @author YeMint 2016-5-2 MeMessage.java TODO 最后修改人 :无 | |
| 7 | + */ | |
| 8 | +public class Min { | |
| 9 | + | |
| 10 | + private int code; | |
| 11 | + private boolean state; | |
| 12 | + private String description; | |
| 13 | + | |
| 14 | + public Min(int code, boolean state, String description) { | |
| 15 | + super(); | |
| 16 | + this.code = code; | |
| 17 | + this.state = state; | |
| 18 | + this.description = description; | |
| 19 | + } | |
| 20 | + | |
| 21 | + public Min() { | |
| 22 | + super(); | |
| 23 | + } | |
| 24 | + | |
| 25 | + /** | |
| 26 | + * @return the code | |
| 27 | + */ | |
| 28 | + public int getCode() { | |
| 29 | + return code; | |
| 30 | + } | |
| 31 | + | |
| 32 | + /** | |
| 33 | + * @param code | |
| 34 | + * the code to set | |
| 35 | + */ | |
| 36 | + public void setCode(int code) { | |
| 37 | + this.code = code; | |
| 38 | + } | |
| 39 | + | |
| 40 | + /** | |
| 41 | + * @return the state | |
| 42 | + */ | |
| 43 | + public boolean isState() { | |
| 44 | + return state; | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** | |
| 48 | + * @param state | |
| 49 | + * the state to set | |
| 50 | + */ | |
| 51 | + public void setState(boolean state) { | |
| 52 | + this.state = state; | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** | |
| 56 | + * @return the description | |
| 57 | + */ | |
| 58 | + public String getDescription() { | |
| 59 | + return description; | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * @param description | |
| 64 | + * the description to set | |
| 65 | + */ | |
| 66 | + public void setDescription(String description) { | |
| 67 | + this.description = description; | |
| 68 | + } | |
| 69 | + | |
| 70 | +} | ... | ... |
.svn/pristine/00/00821ac3321b0fe76309c7759fb4d127ed26f892.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/00/00821ac3321b0fe76309c7759fb4d127ed26f892.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + xmlns:tools="http://schemas.android.com/tools" | |
| 4 | + android:id="@+id/live_layout" | |
| 5 | + android:layout_width="match_parent" | |
| 6 | + android:layout_height="match_parent"> | |
| 7 | + | |
| 8 | + | |
| 9 | + <com.ivt.plus.vitamio.CNMediaPlayer | |
| 10 | + android:id="@+id/player" | |
| 11 | + android:layout_width="match_parent" | |
| 12 | + android:layout_height="180dp" | |
| 13 | + android:background="@android:color/black" | |
| 14 | + android:visibility="gone" /> | |
| 15 | + | |
| 16 | + <RelativeLayout | |
| 17 | + android:id="@+id/other" | |
| 18 | + android:layout_width="match_parent" | |
| 19 | + android:layout_height="match_parent" | |
| 20 | + android:layout_below="@+id/player"> | |
| 21 | + | |
| 22 | + <RelativeLayout | |
| 23 | + android:id="@+id/container_part" | |
| 24 | + android:layout_width="match_parent" | |
| 25 | + android:layout_height="match_parent" | |
| 26 | + android:layout_marginBottom="48dp" | |
| 27 | + android:background="@color/config_background_color"> | |
| 28 | + | |
| 29 | + <LinearLayout | |
| 30 | + android:id="@+id/container_part_top" | |
| 31 | + android:layout_width="match_parent" | |
| 32 | + android:layout_height="37dp" | |
| 33 | + android:background="@color/TextColorWhite" | |
| 34 | + android:orientation="horizontal"> | |
| 35 | + | |
| 36 | + <com.ivt.plus.indicator.TabPageIndicator | |
| 37 | + android:id="@+id/indicator" | |
| 38 | + android:layout_width="match_parent" | |
| 39 | + android:layout_height="37dp" | |
| 40 | + android:layout_weight="1" /> | |
| 41 | + | |
| 42 | + <ImageButton | |
| 43 | + android:id="@+id/btn_fullscreen" | |
| 44 | + style="@style/fullscreen_style" | |
| 45 | + android:visibility="gone" /> | |
| 46 | + </LinearLayout> | |
| 47 | + | |
| 48 | + <android.support.v4.view.ViewPager | |
| 49 | + android:id="@+id/viewpager" | |
| 50 | + android:layout_width="match_parent" | |
| 51 | + android:layout_height="match_parent" | |
| 52 | + android:layout_below="@+id/container_part_top" /> | |
| 53 | + | |
| 54 | + <ListView | |
| 55 | + android:id="@+id/active_view" | |
| 56 | + android:layout_width="48dp" | |
| 57 | + android:layout_height="wrap_content" | |
| 58 | + android:layout_alignParentRight="true" | |
| 59 | + android:layout_below="@+id/container_part_top" | |
| 60 | + android:layout_marginBottom="12dp" | |
| 61 | + android:layout_marginTop="42dp" | |
| 62 | + android:cacheColorHint="#00000000" | |
| 63 | + android:divider="@null" | |
| 64 | + android:fadingEdge="none" | |
| 65 | + android:listSelector="#00000000" | |
| 66 | + android:scrollbars="none" | |
| 67 | + android:visibility="gone" /> | |
| 68 | + | |
| 69 | + </RelativeLayout> | |
| 70 | + | |
| 71 | + | |
| 72 | + <LinearLayout | |
| 73 | + android:id="@+id/foot" | |
| 74 | + android:layout_width="match_parent" | |
| 75 | + android:layout_height="wrap_content" | |
| 76 | + android:layout_alignParentBottom="true" | |
| 77 | + android:orientation="vertical" | |
| 78 | + android:visibility="gone"> | |
| 79 | + | |
| 80 | + <include | |
| 81 | + android:id="@+id/footer_layout" | |
| 82 | + layout="@layout/footer" /> | |
| 83 | + | |
| 84 | + <LinearLayout | |
| 85 | + android:id="@+id/footer_for_emoticons" | |
| 86 | + android:layout_width="match_parent" | |
| 87 | + android:layout_height="@dimen/keyboard_height" | |
| 88 | + android:background="@android:color/transparent" | |
| 89 | + android:orientation="horizontal" | |
| 90 | + android:visibility="gone" /> | |
| 91 | + | |
| 92 | + </LinearLayout> | |
| 93 | + | |
| 94 | + <LinearLayout | |
| 95 | + android:id="@+id/tab_part" | |
| 96 | + android:layout_width="match_parent" | |
| 97 | + android:layout_height="48dp" | |
| 98 | + android:layout_alignParentBottom="true" | |
| 99 | + android:background="@color/main_tab_background_color" | |
| 100 | + android:baselineAligned="false" | |
| 101 | + android:orientation="horizontal"> | |
| 102 | + | |
| 103 | + <LinearLayout | |
| 104 | + android:id="@+id/detail_share" | |
| 105 | + android:layout_width="match_parent" | |
| 106 | + android:layout_height="wrap_content" | |
| 107 | + android:layout_gravity="center" | |
| 108 | + android:layout_weight="1" | |
| 109 | + android:gravity="center" | |
| 110 | + android:orientation="vertical" | |
| 111 | + android:padding="2dp"> | |
| 112 | + | |
| 113 | + <ImageView | |
| 114 | + android:id="@+id/tabImg" | |
| 115 | + android:layout_width="30dp" | |
| 116 | + android:layout_height="30dp" | |
| 117 | + android:layout_gravity="center_horizontal" | |
| 118 | + android:contentDescription="@null" | |
| 119 | + android:src="@drawable/btn_detail_share" /> | |
| 120 | + | |
| 121 | + <TextView | |
| 122 | + android:id="@+id/tabText" | |
| 123 | + android:layout_width="wrap_content" | |
| 124 | + android:layout_height="wrap_content" | |
| 125 | + android:focusable="true" | |
| 126 | + android:gravity="center" | |
| 127 | + android:text="分享" | |
| 128 | + android:textAlignment="center" | |
| 129 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 130 | + android:textSize="12sp" | |
| 131 | + tools:ignore="UnusedAttribute" /> | |
| 132 | + </LinearLayout> | |
| 133 | + | |
| 134 | + <LinearLayout | |
| 135 | + android:id="@+id/detail_collect" | |
| 136 | + android:layout_width="match_parent" | |
| 137 | + android:layout_height="wrap_content" | |
| 138 | + android:layout_weight="1" | |
| 139 | + android:gravity="center" | |
| 140 | + android:orientation="vertical" | |
| 141 | + android:padding="2dp"> | |
| 142 | + | |
| 143 | + <ImageView | |
| 144 | + android:id="@+id/detail_collect_img" | |
| 145 | + android:layout_width="30dp" | |
| 146 | + android:layout_height="30dp" | |
| 147 | + android:layout_gravity="center_horizontal" | |
| 148 | + android:contentDescription="@null" | |
| 149 | + android:src="@drawable/btn_detail_collect" /> | |
| 150 | + | |
| 151 | + <TextView | |
| 152 | + android:layout_width="wrap_content" | |
| 153 | + android:layout_height="wrap_content" | |
| 154 | + android:focusable="true" | |
| 155 | + android:gravity="center" | |
| 156 | + android:text="收藏" | |
| 157 | + android:textAlignment="center" | |
| 158 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 159 | + android:textSize="12sp" | |
| 160 | + tools:ignore="UnusedAttribute" /> | |
| 161 | + </LinearLayout> | |
| 162 | + | |
| 163 | + <LinearLayout | |
| 164 | + android:id="@+id/detail_barcode" | |
| 165 | + android:layout_width="match_parent" | |
| 166 | + android:layout_height="wrap_content" | |
| 167 | + android:layout_weight="1" | |
| 168 | + android:gravity="center" | |
| 169 | + android:orientation="vertical" | |
| 170 | + android:padding="2dp"> | |
| 171 | + | |
| 172 | + <ImageView | |
| 173 | + android:id="@+id/detail_barcode_img" | |
| 174 | + android:layout_width="30dp" | |
| 175 | + android:layout_height="30dp" | |
| 176 | + android:layout_gravity="center_horizontal" | |
| 177 | + android:contentDescription="@null" | |
| 178 | + android:src="@drawable/btn_detail_barcode" /> | |
| 179 | + | |
| 180 | + <TextView | |
| 181 | + android:layout_width="wrap_content" | |
| 182 | + android:layout_height="wrap_content" | |
| 183 | + android:focusable="true" | |
| 184 | + android:gravity="center" | |
| 185 | + android:text="二维码" | |
| 186 | + android:textAlignment="center" | |
| 187 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 188 | + android:textSize="12sp" | |
| 189 | + tools:ignore="UnusedAttribute" /> | |
| 190 | + </LinearLayout> | |
| 191 | + </LinearLayout> | |
| 192 | + | |
| 193 | + </RelativeLayout> | |
| 194 | + | |
| 195 | +</RelativeLayout> | |
| 0 | 196 | \ No newline at end of file | ... | ... |
.svn/pristine/00/009abab555ee9d2bacfc4823c6da39cc7f77b973.svn-base
0 → 100644
No preview for this file type
.svn/pristine/00/009d1d179ad8c88b0d66e11d6f9579ea0979a673.svn-base
0 → 100644
No preview for this file type
.svn/pristine/00/00b55bae9157fe53c678663344008098e807d1e2.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/00/00b55bae9157fe53c678663344008098e807d1e2.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <!-- Non focused states --> | |
| 4 | + <item android:drawable="@drawable/btn_user_nor" android:state_focused="false" android:state_pressed="false" android:state_selected="false" /> | |
| 5 | + <item android:drawable="@drawable/btn_user_sel" android:state_focused="false" android:state_pressed="false" android:state_selected="true" /> | |
| 6 | + <!-- Focused states --> | |
| 7 | + <item android:drawable="@drawable/btn_user_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="false" /> | |
| 8 | + <item android:drawable="@drawable/btn_user_sel" android:state_focused="true" android:state_pressed="false" android:state_selected="true" /> | |
| 9 | + <!-- Pressed --> | |
| 10 | + <item android:drawable="@drawable/btn_user_sel" android:state_pressed="true" android:state_selected="true" /> | |
| 11 | + <item android:drawable="@drawable/btn_user_sel" android:state_pressed="true" /> | |
| 12 | +</selector> | |
| 0 | 13 | \ No newline at end of file | ... | ... |
.svn/pristine/00/00f3f66b5095bb209b93826fd927cbd4e9275e59.svn-base
0 → 100644
No preview for this file type
.svn/pristine/01/011459c4e0fa8268567e1411643ea34dc7c612b8.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/01/011459c4e0fa8268567e1411643ea34dc7c612b8.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午6:47:48 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.utils.publics; | |
| 6 | + | |
| 7 | +import java.io.IOException; | |
| 8 | + | |
| 9 | +import com.ivt.android.me.MainApplication; | |
| 10 | +import com.ivt.android.me.bean.UserEntity; | |
| 11 | +import com.ivt.android.me.constant.BaseInfo; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * @author 郎咸智 | |
| 15 | + * @version 创建时间:2016-8-10 下午6:47:48 | |
| 16 | + * 类说明 | |
| 17 | + */ | |
| 18 | + | |
| 19 | +/** | |
| 20 | + * @author 郎咸智 | |
| 21 | + * | |
| 22 | + * 2016-8-10 下午6:47:48 | |
| 23 | + */ | |
| 24 | +public class LocationUserUtil { | |
| 25 | + | |
| 26 | + public static void SaveUser(UserEntity user) { | |
| 27 | + try { | |
| 28 | + BaseInfo.Captcha = user.getCaptcha(); | |
| 29 | + BaseInfo.UserId = user.getId() + ""; | |
| 30 | + SharePreferenceUtil.setValue(MainApplication.getInstance(), | |
| 31 | + BaseInfo.SharePreName_User, IOUtils.serialize(user)); | |
| 32 | + } catch (IOException e) { | |
| 33 | + // TODO Auto-generated catch block | |
| 34 | + e.printStackTrace(); | |
| 35 | + } | |
| 36 | + } | |
| 37 | + | |
| 38 | + public static UserEntity GetUser() { | |
| 39 | + UserEntity user = (UserEntity) IOUtils | |
| 40 | + .deSerialization(SharePreferenceUtil.getString( | |
| 41 | + MainApplication.getInstance(), | |
| 42 | + BaseInfo.SharePreName_User, "")); | |
| 43 | + return user; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public static boolean IsHaveUser() { | |
| 47 | + if (SharePreferenceUtil.contains(MainApplication.getInstance(), | |
| 48 | + BaseInfo.SharePreName_User)) { | |
| 49 | + UserEntity user = (UserEntity) IOUtils | |
| 50 | + .deSerialization(SharePreferenceUtil.getString( | |
| 51 | + MainApplication.getInstance(), | |
| 52 | + BaseInfo.SharePreName_User, "")); | |
| 53 | + if (user != null) { | |
| 54 | + return true; | |
| 55 | + } else { | |
| 56 | + return false; | |
| 57 | + } | |
| 58 | + } | |
| 59 | + return false; | |
| 60 | + } | |
| 61 | +} | ... | ... |
.svn/pristine/01/019d3208ec52098418f1d674bc5f3888b2c15551.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/01/019d3208ec52098418f1d674bc5f3888b2c15551.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:id="@+id/star_layout" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="match_parent" | |
| 6 | + android:background="@color/activity_background" | |
| 7 | + android:orientation="vertical" > | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + <android.support.v4.widget.SwipeRefreshLayout | |
| 12 | + android:id="@+id/hall_like_swi" | |
| 13 | + android:layout_width="match_parent" | |
| 14 | + android:layout_height="match_parent" | |
| 15 | + android:background="@null" > | |
| 16 | + | |
| 17 | + <ListView | |
| 18 | + android:id="@+id/hall_like_lv" | |
| 19 | + android:layout_width="fill_parent" | |
| 20 | + android:layout_height="wrap_content" | |
| 21 | + android:layout_centerInParent="true" | |
| 22 | + android:divider="@null" | |
| 23 | + android:scrollbars="none" /> | |
| 24 | + </android.support.v4.widget.SwipeRefreshLayout> | |
| 25 | + | |
| 26 | + <TextView | |
| 27 | + android:id="@+id/null_remind" | |
| 28 | + android:layout_width="wrap_content" | |
| 29 | + android:layout_height="wrap_content" | |
| 30 | + android:layout_centerInParent="true" | |
| 31 | + android:alpha="0.5" | |
| 32 | + android:gravity="center" | |
| 33 | + android:text="暂时没有好友直播" | |
| 34 | + android:textColor="#000000" | |
| 35 | + android:textSize="16sp" | |
| 36 | + /> | |
| 37 | +</RelativeLayout> | |
| 0 | 38 | \ No newline at end of file | ... | ... |
.svn/pristine/01/01b090d3568e7f55d8a58f6f8df8d1291d3d279f.svn-base
0 → 100644
No preview for this file type
.svn/pristine/01/01b1dba6da8a80a189b45b6f79752946f6a9837d.svn-base
0 → 100644
No preview for this file type
.svn/pristine/01/01c56fdc21a9c128a57f2de2d916550b2397eb21.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/01/01c56fdc21a9c128a57f2de2d916550b2397eb21.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<resources> | |
| 3 | + <string name="UMBreak_Network">未联网</string> | |
| 4 | + <string name="UMUpdateTitle">发现新版本</string> | |
| 5 | + <string name="UMNewVersion">最新版本: </string> | |
| 6 | + <string name="UMUpdateContent">更新内容</string> | |
| 7 | + <string name="UMUpdateSize">仅需要下载:</string> | |
| 8 | + <string name="UMTargetSize">新版本大小:</string> | |
| 9 | + <string name="UMGprsCondition">(提示:非WIFI环境)</string> | |
| 10 | + <string name="UMUpdateNow">立即更新</string> | |
| 11 | + <string name="UMAppUpdate">应用更新</string> | |
| 12 | + <string name="UMNotNow">以后再说</string> | |
| 13 | + <string name="UMIgnore">忽略该版</string> | |
| 14 | + <string name="UMToast_IsUpdating">正在更新中....</string> | |
| 15 | + <string name="UMDialog_InstallAPK">最新版本已下载,是否安装?</string> | |
| 16 | + <string name="UMUpdateCheck">2.4.2.20140520</string> | |
| 17 | +</resources> | ... | ... |
.svn/pristine/02/022a9f0a5264c91e2e9aaa27b6454ae89c4aaf5b.svn-base
0 → 100644
No preview for this file type
.svn/pristine/02/025256a1d03d72ae1153eca75789db7f8023b0a1.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/02/025256a1d03d72ae1153eca75789db7f8023b0a1.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + xmlns:tools="http://schemas.android.com/tools" | |
| 5 | + style="@style/list_item_style" | |
| 6 | + android:layout_width="match_parent" | |
| 7 | + android:layout_height="wrap_content" | |
| 8 | + android:background="@color/color_ff" | |
| 9 | + android:orientation="vertical"> | |
| 10 | + | |
| 11 | + <RelativeLayout | |
| 12 | + android:id="@+id/list_item_part" | |
| 13 | + android:layout_width="match_parent" | |
| 14 | + android:layout_height="90dp" | |
| 15 | + android:padding="8dp"> | |
| 16 | + | |
| 17 | + <ImageView | |
| 18 | + android:id="@+id/image" | |
| 19 | + android:layout_width="108dp" | |
| 20 | + android:layout_height="72dp" | |
| 21 | + android:layout_centerVertical="true" | |
| 22 | + android:layout_marginRight="8dp" | |
| 23 | + android:background="@drawable/list_item_image_load_fail" | |
| 24 | + android:contentDescription="@null" | |
| 25 | + android:scaleType="fitXY" /> | |
| 26 | + | |
| 27 | + <LinearLayout | |
| 28 | + android:layout_width="match_parent" | |
| 29 | + android:layout_height="wrap_content" | |
| 30 | + android:layout_centerVertical="true" | |
| 31 | + android:layout_toRightOf="@+id/image" | |
| 32 | + android:orientation="vertical"> | |
| 33 | + | |
| 34 | + <TextView | |
| 35 | + android:id="@+id/title" | |
| 36 | + android:layout_width="match_parent" | |
| 37 | + android:layout_height="wrap_content" | |
| 38 | + android:ellipsize="end" | |
| 39 | + android:gravity="center_vertical" | |
| 40 | + android:maxLength="15" | |
| 41 | + android:paddingBottom="10dp" | |
| 42 | + android:singleLine="true" | |
| 43 | + android:textColor="@color/text_input_color" | |
| 44 | + android:textSize="15sp" | |
| 45 | + tools:text="Title" /> | |
| 46 | + | |
| 47 | + <TextView | |
| 48 | + android:id="@+id/content" | |
| 49 | + android:layout_width="match_parent" | |
| 50 | + android:layout_height="wrap_content" | |
| 51 | + android:ellipsize="end" | |
| 52 | + android:maxLines="2" | |
| 53 | + android:minLines="2" | |
| 54 | + android:textColor="@color/text_a9" | |
| 55 | + android:textSize="12sp" | |
| 56 | + tools:text="Content Text " /> | |
| 57 | + </LinearLayout> | |
| 58 | + | |
| 59 | + </RelativeLayout> | |
| 60 | + | |
| 61 | + | |
| 62 | + <View | |
| 63 | + android:id="@+id/bottom_line_short" | |
| 64 | + android:layout_width="match_parent" | |
| 65 | + android:layout_height="1px" | |
| 66 | + android:layout_marginLeft="8dp" | |
| 67 | + android:layout_marginRight="8dp" | |
| 68 | + android:background="@color/gray_line_color" /> | |
| 69 | +</LinearLayout> | |
| 0 | 70 | \ No newline at end of file | ... | ... |
.svn/pristine/02/028345cc19e77d16e4ea1d80407868938723eff4.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/02/028345cc19e77d16e4ea1d80407868938723eff4.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午6:45:49 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.bean; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * @author 郎咸智 | |
| 9 | + * @version 创建时间:2016-6-21 下午6:45:49 | |
| 10 | + * 类说明 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * @author 郎咸智 | |
| 15 | + * | |
| 16 | + * 2016-6-21 下午6:45:49 | |
| 17 | + */ | |
| 18 | +public class StopBean extends BaseBean { | |
| 19 | + private int audienceNowNum; | |
| 20 | + private int audienceTotalNum; | |
| 21 | + private int meTotal; | |
| 22 | + | |
| 23 | + /** | |
| 24 | + * @return the audienceNowNum | |
| 25 | + */ | |
| 26 | + public int getAudienceNowNum() { | |
| 27 | + return audienceNowNum; | |
| 28 | + } | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * @param audienceNowNum | |
| 32 | + * the audienceNowNum to set | |
| 33 | + */ | |
| 34 | + public void setAudienceNowNum(int audienceNowNum) { | |
| 35 | + this.audienceNowNum = audienceNowNum; | |
| 36 | + } | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * @return the audienceTotalNum | |
| 40 | + */ | |
| 41 | + public int getAudienceTotalNum() { | |
| 42 | + return audienceTotalNum; | |
| 43 | + } | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * @param audienceTotalNum | |
| 47 | + * the audienceTotalNum to set | |
| 48 | + */ | |
| 49 | + public void setAudienceTotalNum(int audienceTotalNum) { | |
| 50 | + this.audienceTotalNum = audienceTotalNum; | |
| 51 | + } | |
| 52 | + | |
| 53 | + /** | |
| 54 | + * @return the meTotal | |
| 55 | + */ | |
| 56 | + public int getMeTotal() { | |
| 57 | + return meTotal; | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * @param meTotal | |
| 62 | + * the meTotal to set | |
| 63 | + */ | |
| 64 | + public void setMeTotal(int meTotal) { | |
| 65 | + this.meTotal = meTotal; | |
| 66 | + } | |
| 67 | + | |
| 68 | + /* | |
| 69 | + * (non-Javadoc) | |
| 70 | + * | |
| 71 | + * @see java.lang.Object#toString() | |
| 72 | + */ | |
| 73 | + @Override | |
| 74 | + public String toString() { | |
| 75 | + return "StopBean [audienceNowNum=" + audienceNowNum | |
| 76 | + + ", audienceTotalNum=" + audienceTotalNum + ", meTotal=" | |
| 77 | + + meTotal + "]"; | |
| 78 | + } | |
| 79 | + | |
| 80 | +} | ... | ... |
.svn/pristine/02/02aedb009c49e5ad926b1f0ffa20a675dea55845.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/02/02aedb009c49e5ad926b1f0ffa20a675dea55845.svn-base | |
| 1 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 2 | + xmlns:tools="http://schemas.android.com/tools" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:layout_height="match_parent" | |
| 5 | + android:background="@color/activity_background" | |
| 6 | + tools:context="${relativePackage}.${activityClass}" > | |
| 7 | + | |
| 8 | + <RelativeLayout | |
| 9 | + android:id="@+id/setname_top_layout" | |
| 10 | + android:layout_width="match_parent" | |
| 11 | + style="@style/all_title" > | |
| 12 | + | |
| 13 | + <TextView | |
| 14 | + android:id="@+id/setsex_back_btn" | |
| 15 | + android:layout_width="wrap_content" | |
| 16 | + android:layout_height="wrap_content" | |
| 17 | + android:layout_alignParentLeft="true" | |
| 18 | + android:layout_centerInParent="true" | |
| 19 | + android:layout_marginLeft="12dp" | |
| 20 | + android:src="@drawable/btn_back_white" | |
| 21 | + android:text="取消" | |
| 22 | + android:padding="5dip" | |
| 23 | + android:textColor="#ffffff" | |
| 24 | + android:textSize="14dip" /> | |
| 25 | + | |
| 26 | + <TextView | |
| 27 | + android:id="@+id/setsex_main_tv" | |
| 28 | + android:layout_width="wrap_content" | |
| 29 | + android:layout_height="wrap_content" | |
| 30 | + android:layout_centerInParent="true" | |
| 31 | + android:text="性别" | |
| 32 | + android:textColor="@color/white" | |
| 33 | + android:textSize="@dimen/all_title_size" /> | |
| 34 | + | |
| 35 | + <TextView | |
| 36 | + android:id="@+id/setsex_save" | |
| 37 | + android:layout_width="wrap_content" | |
| 38 | + android:layout_height="wrap_content" | |
| 39 | + android:layout_alignParentRight="true" | |
| 40 | + android:layout_centerVertical="true" | |
| 41 | + android:layout_marginRight="12dp" | |
| 42 | + android:text="保存" | |
| 43 | + android:padding="5dip" | |
| 44 | + android:textColor="#ffffff" | |
| 45 | + android:textSize="14dip" /> | |
| 46 | + </RelativeLayout> | |
| 47 | + | |
| 48 | + <TextView | |
| 49 | + android:id="@+id/setsex_man" | |
| 50 | + android:layout_width="match_parent" | |
| 51 | + android:layout_height="45dip" | |
| 52 | + android:layout_below="@+id/setname_top_layout" | |
| 53 | + android:layout_marginTop="18dip" | |
| 54 | + android:background="#ffffff" | |
| 55 | + android:gravity="center" | |
| 56 | + android:text="男" | |
| 57 | + android:textColor="#5a5a5a" | |
| 58 | + android:textSize="16dip" /> | |
| 59 | + | |
| 60 | + <TextView | |
| 61 | + android:id="@+id/setsex_woman" | |
| 62 | + android:layout_width="match_parent" | |
| 63 | + android:layout_height="45dip" | |
| 64 | + android:layout_below="@+id/setsex_man" | |
| 65 | + android:layout_marginTop="2dip" | |
| 66 | + android:background="#ffffff" | |
| 67 | + android:gravity="center" | |
| 68 | + android:text="女" | |
| 69 | + android:textColor="#5a5a5a" | |
| 70 | + android:textSize="16dip" /> | |
| 71 | + | |
| 72 | +</RelativeLayout> | |
| 0 | 73 | \ No newline at end of file | ... | ... |
.svn/pristine/02/02b4a46c40768d2ca64b63513b0c90b26633559d.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/02/02b4a46c40768d2ca64b63513b0c90b26633559d.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:id="@+id/chat_layout" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="match_parent" | |
| 6 | + android:background="#ffffff" > | |
| 7 | + | |
| 8 | + <!-- 标题栏布局 --> | |
| 9 | + | |
| 10 | + | |
| 11 | + <RelativeLayout | |
| 12 | + android:id="@+id/chat_dialog_one_layout" | |
| 13 | + android:layout_width="match_parent" | |
| 14 | + android:layout_height="48dp" | |
| 15 | + android:layout_alignParentTop="true" | |
| 16 | + android:background="#d31863" > | |
| 17 | + | |
| 18 | + <ImageView | |
| 19 | + android:id="@+id/chat_dialog_back_btn" | |
| 20 | + style="@style/title_btn" | |
| 21 | + android:layout_marginLeft="2dp" | |
| 22 | + android:src="@drawable/btn_back_white" /> | |
| 23 | + | |
| 24 | + <TextView | |
| 25 | + android:id="@+id/chat_dialog_main_tv" | |
| 26 | + android:layout_width="wrap_content" | |
| 27 | + android:layout_height="wrap_content" | |
| 28 | + android:layout_centerInParent="true" | |
| 29 | + android:maxLength="10" | |
| 30 | + android:textColor="#FFFFFF" | |
| 31 | + android:textSize="16sp" /> | |
| 32 | + | |
| 33 | + <ImageView | |
| 34 | + android:id="@+id/chat_dialog_user" | |
| 35 | + style="@style/title_btn" | |
| 36 | + android:layout_alignParentRight="true" | |
| 37 | + android:layout_marginRight="5dp" | |
| 38 | + android:gravity="center" | |
| 39 | + android:src="@drawable/btn_person" /> | |
| 40 | + </RelativeLayout> | |
| 41 | + | |
| 42 | + | |
| 43 | + <com.ivt.android.me.ui.myview.DropdownListView | |
| 44 | + android:id="@+id/chat_dialog_lv" | |
| 45 | + android:layout_width="match_parent" | |
| 46 | + android:layout_height="match_parent" | |
| 47 | + android:layout_above="@+id/dibu" | |
| 48 | + android:layout_below="@+id/chat_dialog_one_layout" | |
| 49 | + android:background="#f0f0f0" | |
| 50 | + android:cacheColorHint="@color/transparent" | |
| 51 | + android:divider="@null" | |
| 52 | + android:fadingEdge="none" | |
| 53 | + android:isScrollContainer="true" | |
| 54 | + android:listSelector="@color/transparent" | |
| 55 | + android:scrollbars="none" | |
| 56 | + android:textColor="#000000" | |
| 57 | + android:textSize="12sp" | |
| 58 | + android:transcriptMode="normal" /> | |
| 59 | + | |
| 60 | + <!-- 底部输入框 --> | |
| 61 | + | |
| 62 | + <View | |
| 63 | + android:id="@+id/fengexian" | |
| 64 | + android:layout_width="match_parent" | |
| 65 | + android:layout_height="1px" | |
| 66 | + android:layout_above="@+id/dibu" | |
| 67 | + android:background="#dcdcdc" /> | |
| 68 | + | |
| 69 | + <LinearLayout | |
| 70 | + android:id="@+id/dibu" | |
| 71 | + android:layout_width="match_parent" | |
| 72 | + android:layout_height="wrap_content" | |
| 73 | + android:layout_alignParentBottom="true" | |
| 74 | + android:layout_marginBottom="1dp" | |
| 75 | + android:orientation="vertical" > | |
| 76 | + | |
| 77 | + <RelativeLayout | |
| 78 | + android:layout_width="match_parent" | |
| 79 | + android:layout_height="43dp" | |
| 80 | + android:background="#ffffff" > | |
| 81 | + | |
| 82 | + <EditText | |
| 83 | + android:id="@+id/chat_dialog_edit" | |
| 84 | + android:layout_width="match_parent" | |
| 85 | + android:layout_height="30dp" | |
| 86 | + android:layout_centerVertical="true" | |
| 87 | + android:layout_marginLeft="8dp" | |
| 88 | + android:layout_marginRight="8dp" | |
| 89 | + android:layout_toLeftOf="@+id/chat_dialog_send" | |
| 90 | + android:layout_toRightOf="@+id/chat_dialog_emoji" | |
| 91 | + android:background="@drawable/chat_edit_bg" | |
| 92 | + android:paddingLeft="3dp" | |
| 93 | + android:textColor="#000000" | |
| 94 | + android:textSize="12sp" /> | |
| 95 | + | |
| 96 | + <ImageView | |
| 97 | + android:id="@+id/chat_dialog_emoji" | |
| 98 | + android:layout_width="wrap_content" | |
| 99 | + android:layout_height="wrap_content" | |
| 100 | + android:layout_centerVertical="true" | |
| 101 | + android:layout_marginLeft="7dip" | |
| 102 | + android:src="@drawable/btn_emoji" /> | |
| 103 | + | |
| 104 | + <ImageView | |
| 105 | + android:id="@+id/chat_dialog_send" | |
| 106 | + android:layout_width="wrap_content" | |
| 107 | + android:layout_height="wrap_content" | |
| 108 | + android:layout_alignParentRight="true" | |
| 109 | + android:layout_centerVertical="true" | |
| 110 | + android:layout_marginRight="2dp" | |
| 111 | + android:paddingLeft="3dip" | |
| 112 | + android:paddingRight="3dip" | |
| 113 | + android:src="@drawable/chat_send" /> | |
| 114 | + </RelativeLayout> | |
| 115 | + | |
| 116 | + <include | |
| 117 | + android:id="@+id/chat_face_container" | |
| 118 | + layout="@layout/includ_chat_dialog" | |
| 119 | + android:visibility="gone" /> | |
| 120 | + </LinearLayout> | |
| 121 | + | |
| 122 | +</RelativeLayout> | |
| 0 | 123 | \ No newline at end of file | ... | ... |
.svn/pristine/02/02d568b741fcd2064d34939dea01da2efe987d3e.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/02/02d568b741fcd2064d34939dea01da2efe987d3e.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:shape="rectangle"> | |
| 4 | + <padding | |
| 5 | + android:left="7dp" | |
| 6 | + android:top="7dp" | |
| 7 | + android:right="7dp" | |
| 8 | + android:bottom="7dp" /> | |
| 9 | + <corners android:radius="8dp" /> | |
| 10 | + <solid android:color="#F5F5F5" /> | |
| 11 | + <stroke | |
| 12 | + android:width="3dip" | |
| 13 | + android:color="#6F6F6F" /> | |
| 14 | +</shape> | |
| 0 | 15 | \ No newline at end of file | ... | ... |
.svn/pristine/02/02fffc5503ec34e806d6357e968b5a13ac9c0c54.svn-base
0 → 100644
No preview for this file type
.svn/pristine/03/0312d526470f1be325dc28564bbcb3e0d0214487.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/0312d526470f1be325dc28564bbcb3e0d0214487.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午6:36:00 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.model.main; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * @author 郎咸智 | |
| 9 | + * @version 创建时间:2016-8-11 下午6:36:00 | |
| 10 | + * 类说明 | |
| 11 | + */ | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * @author 郎咸智 | |
| 15 | + * | |
| 16 | + * 2016-8-11 下午6:36:00 | |
| 17 | + */ | |
| 18 | +public interface IMain { | |
| 19 | + | |
| 20 | + public void GetAttents(); | |
| 21 | +} | ... | ... |
.svn/pristine/03/03276995d5d0ac9e4eb9ff29ec6370d435009c2f.svn-base
0 → 100644
No preview for this file type
.svn/pristine/03/0331dc6c4c4f4f4044aed40dc14a0212b6b77b51.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/0331dc6c4c4f4f4044aed40dc14a0212b6b77b51.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:layout_height="match_parent" > | |
| 5 | + | |
| 6 | + <ImageView | |
| 7 | + android:layout_width="match_parent" | |
| 8 | + android:layout_height="match_parent" | |
| 9 | + android:alpha="0.8" | |
| 10 | + android:background="#000000" /> | |
| 11 | + | |
| 12 | + <LinearLayout | |
| 13 | + android:layout_width="wrap_content" | |
| 14 | + android:layout_height="150dp" | |
| 15 | + android:layout_centerInParent="true" | |
| 16 | + android:layout_gravity="center" | |
| 17 | + android:background="@drawable/uplive_close_backgroud" | |
| 18 | + android:orientation="vertical" > | |
| 19 | + | |
| 20 | + <TextView | |
| 21 | + android:layout_width="match_parent" | |
| 22 | + android:layout_height="0dip" | |
| 23 | + android:layout_weight="2" | |
| 24 | + android:gravity="center" | |
| 25 | + android:text="确定结束直播?" | |
| 26 | + android:textColor="#292929" | |
| 27 | + android:textSize="18sp" /> | |
| 28 | + | |
| 29 | + <TextView | |
| 30 | + android:id="@+id/lin1" | |
| 31 | + android:layout_width="match_parent" | |
| 32 | + android:layout_height="1px" | |
| 33 | + android:background="#cccccc" /> | |
| 34 | + | |
| 35 | + <LinearLayout | |
| 36 | + android:layout_width="match_parent" | |
| 37 | + android:layout_height="0dip" | |
| 38 | + android:layout_weight="1" | |
| 39 | + android:orientation="horizontal" > | |
| 40 | + | |
| 41 | + <Button | |
| 42 | + android:id="@+id/uplive_no" | |
| 43 | + android:layout_width="0dip" | |
| 44 | + android:layout_height="match_parent" | |
| 45 | + android:layout_weight="1" | |
| 46 | + android:background="@null" | |
| 47 | + android:gravity="center" | |
| 48 | + android:text="取消" | |
| 49 | + android:textColor="#d31863" | |
| 50 | + android:textSize="16sp" /> | |
| 51 | + | |
| 52 | + <TextView | |
| 53 | + android:id="@+id/lin" | |
| 54 | + android:layout_width="1px" | |
| 55 | + android:layout_height="match_parent" | |
| 56 | + android:background="#cccccc" /> | |
| 57 | + | |
| 58 | + <Button | |
| 59 | + android:id="@+id/uplive_true" | |
| 60 | + android:layout_width="0dip" | |
| 61 | + android:layout_height="match_parent" | |
| 62 | + android:layout_weight="1" | |
| 63 | + android:background="@null" | |
| 64 | + android:gravity="center" | |
| 65 | + android:text="确定" | |
| 66 | + android:textColor="#d31863" | |
| 67 | + android:textSize="16sp" /> | |
| 68 | + </LinearLayout> | |
| 69 | + </LinearLayout> | |
| 70 | + | |
| 71 | +</RelativeLayout> | |
| 0 | 72 | \ No newline at end of file | ... | ... |
.svn/pristine/03/0348b30025610aed5ad2433bb1cef9de3d46db14.svn-base
0 → 100644
No preview for this file type
.svn/pristine/03/03624d49371ca0b3afadde39eec3c6c44b5ef5f2.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/03624d49371ca0b3afadde39eec3c6c44b5ef5f2.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_pressed="true" android:drawable="@drawable/btn_topshare_sel" /> | |
| 4 | + <item android:state_pressed="false" android:drawable="@drawable/btn_topshare_nor" /> | |
| 5 | +</selector> | |
| 0 | 6 | \ No newline at end of file | ... | ... |
.svn/pristine/03/039910ae2b2753b92af9c8fc991cc6bf3f407a9a.svn-base
0 → 100644
No preview for this file type
.svn/pristine/03/03a2917aa25e7c3bb818846811af311b277c325b.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/03a2917aa25e7c3bb818846811af311b277c325b.svn-base | |
| 1 | +package com.ivt.android.me.utils.publics; | |
| 2 | + | |
| 3 | +import android.content.Context; | |
| 4 | +import android.text.TextUtils; | |
| 5 | + | |
| 6 | +import com.ivt.android.me.MainApplication; | |
| 7 | + | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * | |
| 11 | + * @author YeMint 2016-4-13 PhoneNumUtils.java TODO 最后修改人 :无 | |
| 12 | + */ | |
| 13 | +public class PhoneNumUtils { | |
| 14 | + | |
| 15 | + /** | |
| 16 | + * 判断手机号码是否合理 | |
| 17 | + * | |
| 18 | + */ | |
| 19 | + public static boolean judgePhoneNums(String phoneNums) { | |
| 20 | + if (isMatchLength(phoneNums, 11) && isMobileNO(phoneNums)) { | |
| 21 | + return true; | |
| 22 | + } | |
| 23 | + MyToastUtils.showToast(MainApplication.getInstance(), "请输入正确的手机号码"); | |
| 24 | + return false; | |
| 25 | + } | |
| 26 | + | |
| 27 | + /** | |
| 28 | + * 判断一个字符串的位数 | |
| 29 | + */ | |
| 30 | + public static boolean isMatchLength(String str, int length) { | |
| 31 | + if (str.isEmpty()) { | |
| 32 | + return false; | |
| 33 | + } else { | |
| 34 | + return str.length() == length ? true : false; | |
| 35 | + } | |
| 36 | + } | |
| 37 | + | |
| 38 | + public static boolean isYanZM(String str, int length, Context context) { | |
| 39 | + if (str.isEmpty()) { | |
| 40 | + return false; | |
| 41 | + } else { | |
| 42 | + return str.length() == length ? true : false; | |
| 43 | + } | |
| 44 | + } | |
| 45 | + | |
| 46 | + /** | |
| 47 | + * 验证手机格式 | |
| 48 | + */ | |
| 49 | + public static boolean isMobileNO(String mobileNums) { | |
| 50 | + /* | |
| 51 | + * 移动:134、135、136、137、138、139、150、151、157(TD)、158、159、187、188 | |
| 52 | + * 联通:130、131、132、152、155、156、185、186 电信:133、153、180、189、(1349卫通) | |
| 53 | + * 总结起来就是第一位必定为1,第二位必定为3或5或8,其他位置的可以为0-9 | |
| 54 | + */ | |
| 55 | + String telRegex = "[1][34578]\\d{9}";// "[1]"代表第1位为数字1,"[358]"代表第二位可以为3、5、8中的一个,"\\d{9}"代表后面是可以是0~9的数字,有9位。 | |
| 56 | + if (TextUtils.isEmpty(mobileNums)) | |
| 57 | + return false; | |
| 58 | + else | |
| 59 | + return mobileNums.matches(telRegex); | |
| 60 | + } | |
| 61 | + | |
| 62 | +} | ... | ... |
.svn/pristine/03/03a4211b2614af042f9cfcd2a6aba4f87871b344.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/03a4211b2614af042f9cfcd2a6aba4f87871b344.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> | |
| 3 | + <stroke android:width="1dp" android:color="#ffffff" /> | |
| 4 | + <corners android:radius="4dp" /> | |
| 5 | +</shape> | ... | ... |
.svn/pristine/03/03ae2f6889b30e84604a757ec56785ab2bb8a507.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/03ae2f6889b30e84604a757ec56785ab2bb8a507.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_pressed="false" android:state_focused="false" android:drawable="@drawable/umeng_update_close_bg_normal" /> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/umeng_update_close_bg_tap" /> | |
| 5 | + <item android:state_focused="true" android:drawable="@drawable/umeng_update_close_bg_tap" /> | |
| 6 | +</selector> | ... | ... |
.svn/pristine/03/03cbfb587edce6ca67ba74c3529e7a01a22ebbf9.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/03/03cbfb587edce6ca67ba74c3529e7a01a22ebbf9.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android" > | |
| 3 | + <translate | |
| 4 | + android:duration="400" | |
| 5 | + android:fromYDelta="100%p" | |
| 6 | + android:toYDelta="0" /> | |
| 7 | +</set> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
.svn/pristine/03/03e186fabdab66983e2b2aa42a2b2de7cb37dc4a.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/040c0c6c96fbb4cfaa4f80a388d60fd7e51d0499.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/041f40a67ce28650cbc2533ffbc23b8e541b658b.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/0447f3cbb6f6c452613df065b8bb2b4338e7e718.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/04/0447f3cbb6f6c452613df065b8bb2b4338e7e718.svn-base | |
| 1 | +package com.ivt.android.me.ui.myview.cehua; | |
| 2 | + | |
| 3 | +import android.content.Context; | |
| 4 | +import android.support.v4.view.GestureDetectorCompat; | |
| 5 | +import android.support.v4.widget.ScrollerCompat; | |
| 6 | +import android.util.AttributeSet; | |
| 7 | +import android.util.Log; | |
| 8 | +import android.util.TypedValue; | |
| 9 | +import android.view.GestureDetector.OnGestureListener; | |
| 10 | +import android.view.GestureDetector.SimpleOnGestureListener; | |
| 11 | +import android.view.MotionEvent; | |
| 12 | +import android.view.View; | |
| 13 | +import android.view.animation.Interpolator; | |
| 14 | +import android.widget.AbsListView; | |
| 15 | +import android.widget.FrameLayout; | |
| 16 | + | |
| 17 | +/** | |
| 18 | + * | |
| 19 | + * @author YeMint 2016-5-21 SwipeMenuLayout.java TODO 最后修改人 :无 | |
| 20 | + */ | |
| 21 | +public class SwipeMenuLayout extends FrameLayout { | |
| 22 | + | |
| 23 | + private static final int CONTENT_VIEW_ID = 1; | |
| 24 | + private static final int MENU_VIEW_ID = 2; | |
| 25 | + | |
| 26 | + private static final int STATE_CLOSE = 0; | |
| 27 | + private static final int STATE_OPEN = 1; | |
| 28 | + | |
| 29 | + private View mContentView; | |
| 30 | + private SwipeMenuView mMenuView; | |
| 31 | + private int mDownX; | |
| 32 | + private int state = STATE_CLOSE; | |
| 33 | + private GestureDetectorCompat mGestureDetector; | |
| 34 | + private OnGestureListener mGestureListener; | |
| 35 | + private boolean isFling; | |
| 36 | + private int MIN_FLING = dp2px(15); | |
| 37 | + private int MAX_VELOCITYX = -dp2px(500); | |
| 38 | + private ScrollerCompat mOpenScroller; | |
| 39 | + private ScrollerCompat mCloseScroller; | |
| 40 | + private int mBaseX; | |
| 41 | + private int position; | |
| 42 | + private Interpolator mCloseInterpolator; | |
| 43 | + private Interpolator mOpenInterpolator; | |
| 44 | + | |
| 45 | + public SwipeMenuLayout(View contentView, SwipeMenuView menuView) { | |
| 46 | + this(contentView, menuView, null, null); | |
| 47 | + } | |
| 48 | + | |
| 49 | + public SwipeMenuLayout(View contentView, SwipeMenuView menuView, | |
| 50 | + Interpolator closeInterpolator, Interpolator openInterpolator) { | |
| 51 | + super(contentView.getContext()); | |
| 52 | + mCloseInterpolator = closeInterpolator; | |
| 53 | + mOpenInterpolator = openInterpolator; | |
| 54 | + mContentView = contentView; | |
| 55 | + mMenuView = menuView; | |
| 56 | + mMenuView.setLayout(this); | |
| 57 | + init(); | |
| 58 | + } | |
| 59 | + | |
| 60 | + private SwipeMenuLayout(Context context, AttributeSet attrs) { | |
| 61 | + super(context, attrs); | |
| 62 | + } | |
| 63 | + | |
| 64 | + private SwipeMenuLayout(Context context) { | |
| 65 | + super(context); | |
| 66 | + } | |
| 67 | + | |
| 68 | + public int getPosition() { | |
| 69 | + return position; | |
| 70 | + } | |
| 71 | + | |
| 72 | + public void setPosition(int position) { | |
| 73 | + this.position = position; | |
| 74 | + mMenuView.setPosition(position); | |
| 75 | + } | |
| 76 | + | |
| 77 | + private void init() { | |
| 78 | + setLayoutParams(new AbsListView.LayoutParams(LayoutParams.MATCH_PARENT, | |
| 79 | + LayoutParams.WRAP_CONTENT)); | |
| 80 | + mGestureListener = new SimpleOnGestureListener() { | |
| 81 | + @Override | |
| 82 | + public boolean onDown(MotionEvent e) { | |
| 83 | + isFling = false; | |
| 84 | + return true; | |
| 85 | + } | |
| 86 | + | |
| 87 | + @Override | |
| 88 | + public boolean onFling(MotionEvent e1, MotionEvent e2, | |
| 89 | + float velocityX, float velocityY) { | |
| 90 | + // TODO | |
| 91 | + if ((e1.getX() - e2.getX()) > MIN_FLING | |
| 92 | + && velocityX < MAX_VELOCITYX) { | |
| 93 | + isFling = true; | |
| 94 | + } | |
| 95 | + return super.onFling(e1, e2, velocityX, velocityY); | |
| 96 | + } | |
| 97 | + }; | |
| 98 | + mGestureDetector = new GestureDetectorCompat(getContext(), | |
| 99 | + mGestureListener); | |
| 100 | + | |
| 101 | + if (mCloseInterpolator != null) { | |
| 102 | + mCloseScroller = ScrollerCompat.create(getContext(), | |
| 103 | + mCloseInterpolator); | |
| 104 | + } else { | |
| 105 | + mCloseScroller = ScrollerCompat.create(getContext()); | |
| 106 | + } | |
| 107 | + if (mOpenInterpolator != null) { | |
| 108 | + mOpenScroller = ScrollerCompat.create(getContext(), | |
| 109 | + mOpenInterpolator); | |
| 110 | + } else { | |
| 111 | + mOpenScroller = ScrollerCompat.create(getContext()); | |
| 112 | + } | |
| 113 | + | |
| 114 | + LayoutParams contentParams = new LayoutParams( | |
| 115 | + LayoutParams.MATCH_PARENT, LayoutParams.WRAP_CONTENT); | |
| 116 | + mContentView.setLayoutParams(contentParams); | |
| 117 | + if (mContentView.getId() < 1) { | |
| 118 | + mContentView.setId(CONTENT_VIEW_ID); | |
| 119 | + } | |
| 120 | + | |
| 121 | + mMenuView.setId(MENU_VIEW_ID); | |
| 122 | + mMenuView.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, | |
| 123 | + LayoutParams.WRAP_CONTENT)); | |
| 124 | + | |
| 125 | + addView(mContentView); | |
| 126 | + addView(mMenuView); | |
| 127 | + | |
| 128 | + } | |
| 129 | + | |
| 130 | + @Override | |
| 131 | + protected void onAttachedToWindow() { | |
| 132 | + super.onAttachedToWindow(); | |
| 133 | + } | |
| 134 | + | |
| 135 | + @Override | |
| 136 | + protected void onSizeChanged(int w, int h, int oldw, int oldh) { | |
| 137 | + super.onSizeChanged(w, h, oldw, oldh); | |
| 138 | + } | |
| 139 | + | |
| 140 | + public boolean onSwipe(MotionEvent event) { | |
| 141 | + mGestureDetector.onTouchEvent(event); | |
| 142 | + switch (event.getAction()) { | |
| 143 | + case MotionEvent.ACTION_DOWN: | |
| 144 | + mDownX = (int) event.getX(); | |
| 145 | + isFling = false; | |
| 146 | + break; | |
| 147 | + case MotionEvent.ACTION_MOVE: | |
| 148 | + int dis = (int) (mDownX - event.getX()); | |
| 149 | + if (state == STATE_OPEN) { | |
| 150 | + dis += mMenuView.getWidth(); | |
| 151 | + } | |
| 152 | + swipe(dis); | |
| 153 | + break; | |
| 154 | + case MotionEvent.ACTION_UP: | |
| 155 | + if (isFling || (mDownX - event.getX()) > (mMenuView.getWidth() / 2)) { | |
| 156 | + // open | |
| 157 | + smoothOpenMenu(); | |
| 158 | + } else { | |
| 159 | + // close | |
| 160 | + smoothCloseMenu(); | |
| 161 | + return false; | |
| 162 | + } | |
| 163 | + break; | |
| 164 | + } | |
| 165 | + return true; | |
| 166 | + } | |
| 167 | + | |
| 168 | + public boolean isOpen() { | |
| 169 | + return state == STATE_OPEN; | |
| 170 | + } | |
| 171 | + | |
| 172 | + @Override | |
| 173 | + public boolean onTouchEvent(MotionEvent event) { | |
| 174 | + return super.onTouchEvent(event); | |
| 175 | + } | |
| 176 | + | |
| 177 | + private void swipe(int dis) { | |
| 178 | + if (dis > mMenuView.getWidth()) { | |
| 179 | + dis = mMenuView.getWidth(); | |
| 180 | + } | |
| 181 | + if (dis < 0) { | |
| 182 | + dis = 0; | |
| 183 | + } | |
| 184 | + mContentView.layout(-dis, mContentView.getTop(), | |
| 185 | + mContentView.getWidth() - dis, getMeasuredHeight()); | |
| 186 | + mMenuView.layout(mContentView.getWidth() - dis, mMenuView.getTop(), | |
| 187 | + mContentView.getWidth() + mMenuView.getWidth() - dis, | |
| 188 | + mMenuView.getBottom()); | |
| 189 | + } | |
| 190 | + | |
| 191 | + @Override | |
| 192 | + public void computeScroll() { | |
| 193 | + if (state == STATE_OPEN) { | |
| 194 | + if (mOpenScroller.computeScrollOffset()) { | |
| 195 | + swipe(mOpenScroller.getCurrX()); | |
| 196 | + postInvalidate(); | |
| 197 | + } | |
| 198 | + } else { | |
| 199 | + if (mCloseScroller.computeScrollOffset()) { | |
| 200 | + swipe(mBaseX - mCloseScroller.getCurrX()); | |
| 201 | + postInvalidate(); | |
| 202 | + } | |
| 203 | + } | |
| 204 | + } | |
| 205 | + | |
| 206 | + public void smoothCloseMenu() { | |
| 207 | + state = STATE_CLOSE; | |
| 208 | + mBaseX = -mContentView.getLeft(); | |
| 209 | + mCloseScroller.startScroll(0, 0, mBaseX, 0, 350); | |
| 210 | + postInvalidate(); | |
| 211 | + } | |
| 212 | + | |
| 213 | + public void smoothOpenMenu() { | |
| 214 | + state = STATE_OPEN; | |
| 215 | + mOpenScroller.startScroll(-mContentView.getLeft(), 0, | |
| 216 | + mMenuView.getWidth(), 0, 350); | |
| 217 | + postInvalidate(); | |
| 218 | + } | |
| 219 | + | |
| 220 | + public void closeMenu() { | |
| 221 | + if (mCloseScroller.computeScrollOffset()) { | |
| 222 | + mCloseScroller.abortAnimation(); | |
| 223 | + } | |
| 224 | + if (state == STATE_OPEN) { | |
| 225 | + state = STATE_CLOSE; | |
| 226 | + swipe(0); | |
| 227 | + } | |
| 228 | + } | |
| 229 | + | |
| 230 | + public void openMenu() { | |
| 231 | + if (state == STATE_CLOSE) { | |
| 232 | + state = STATE_OPEN; | |
| 233 | + swipe(mMenuView.getWidth()); | |
| 234 | + } | |
| 235 | + } | |
| 236 | + | |
| 237 | + public View getContentView() { | |
| 238 | + return mContentView; | |
| 239 | + } | |
| 240 | + | |
| 241 | + public SwipeMenuView getMenuView() { | |
| 242 | + return mMenuView; | |
| 243 | + } | |
| 244 | + | |
| 245 | + private int dp2px(int dp) { | |
| 246 | + return (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, dp, | |
| 247 | + getContext().getResources().getDisplayMetrics()); | |
| 248 | + } | |
| 249 | + | |
| 250 | + @Override | |
| 251 | + protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { | |
| 252 | + super.onMeasure(widthMeasureSpec, heightMeasureSpec); | |
| 253 | + mMenuView.measure(MeasureSpec.makeMeasureSpec(0, | |
| 254 | + MeasureSpec.UNSPECIFIED), MeasureSpec.makeMeasureSpec( | |
| 255 | + getMeasuredHeight(), MeasureSpec.EXACTLY)); | |
| 256 | + } | |
| 257 | + | |
| 258 | + @Override | |
| 259 | + protected void onLayout(boolean changed, int l, int t, int r, int b) { | |
| 260 | + mContentView.layout(0, 0, getMeasuredWidth(), | |
| 261 | + mContentView.getMeasuredHeight()); | |
| 262 | + mMenuView.layout(getMeasuredWidth(), 0, | |
| 263 | + getMeasuredWidth() + mMenuView.getMeasuredWidth(), | |
| 264 | + mContentView.getMeasuredHeight()); | |
| 265 | + } | |
| 266 | + | |
| 267 | + public void setMenuHeight(int measuredHeight) { | |
| 268 | + Log.i("byz", "pos = " + position + ", height = " + measuredHeight); | |
| 269 | + LayoutParams params = (LayoutParams) mMenuView.getLayoutParams(); | |
| 270 | + if (params.height != measuredHeight) { | |
| 271 | + params.height = measuredHeight; | |
| 272 | + mMenuView.setLayoutParams(mMenuView.getLayoutParams()); | |
| 273 | + } | |
| 274 | + } | |
| 275 | +} | ... | ... |
.svn/pristine/04/048a5f3da4e63d29d79cfdfd823701979c7e5e53.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/04b72978dce1d43bff68b6ff5aacf2bce0009902.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/04c5d9785d0d95bb582b73095ca9861f8583e643.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/04/04c5d9785d0d95bb582b73095ca9861f8583e643.svn-base | |
| 1 | +package com.ivt.android.me.ui.mfragment.redp; | |
| 2 | + | |
| 3 | +import android.annotation.SuppressLint; | |
| 4 | +import android.content.Context; | |
| 5 | +import android.content.Intent; | |
| 6 | +import android.os.Bundle; | |
| 7 | +import android.text.Editable; | |
| 8 | +import android.text.TextWatcher; | |
| 9 | +import android.view.LayoutInflater; | |
| 10 | +import android.view.View; | |
| 11 | +import android.view.View.OnClickListener; | |
| 12 | +import android.view.ViewGroup; | |
| 13 | +import android.view.inputmethod.InputMethodManager; | |
| 14 | +import android.widget.Button; | |
| 15 | +import android.widget.EditText; | |
| 16 | +import android.widget.ImageView; | |
| 17 | +import android.widget.TextView; | |
| 18 | + | |
| 19 | +import com.ivt.android.me.R; | |
| 20 | +import com.ivt.android.me.api.GiftApiBean; | |
| 21 | +import com.ivt.android.me.api.UserApiBean; | |
| 22 | +import com.ivt.android.me.bean.BaseBean; | |
| 23 | +import com.ivt.android.me.bean.ChatMessageBean; | |
| 24 | +import com.ivt.android.me.bean.UserBean; | |
| 25 | +import com.ivt.android.me.bean.UserEntity; | |
| 26 | +import com.ivt.android.me.bean.evenbus.CodeBean; | |
| 27 | +import com.ivt.android.me.constant.BaseInfo; | |
| 28 | +import com.ivt.android.me.constant.CodeUtils; | |
| 29 | +import com.ivt.android.me.ui.activity.mine.MineAccountActivity; | |
| 30 | +import com.ivt.android.me.ui.activity.redp.RedpActivity; | |
| 31 | +import com.ivt.android.me.ui.mfragment.BaseFragment; | |
| 32 | +import com.ivt.android.me.utils.bitmap.PicassoUtils; | |
| 33 | +import com.ivt.android.me.utils.httputil.HttpUtils; | |
| 34 | +import com.ivt.android.me.utils.httputil.HttpUtils.HttpCallback; | |
| 35 | +import com.ivt.android.me.utils.httputil.JsonUtils; | |
| 36 | +import com.ivt.android.me.utils.publics.ClickUtil; | |
| 37 | +import com.ivt.android.me.utils.publics.MyToastUtils; | |
| 38 | +import com.lidroid.xutils.ViewUtils; | |
| 39 | +import com.lidroid.xutils.view.annotation.ViewInject; | |
| 40 | + | |
| 41 | +import de.greenrobot.event.EventBus; | |
| 42 | + | |
| 43 | +/** | |
| 44 | + * | |
| 45 | + * @author YeMint 2016-4-22 RedpAnchorFragment.java TODO 最后修改人 :无 | |
| 46 | + */ | |
| 47 | +public class RedpAnchorFragment extends BaseFragment { | |
| 48 | + @ViewInject(R.id.redp_anthor_btn_send) | |
| 49 | + private TextView tvSend; | |
| 50 | + @ViewInject(R.id.redp_anthor_tv_nums) | |
| 51 | + private EditText tv_nums; | |
| 52 | + @ViewInject(R.id.redp_anthor_notes_edit) | |
| 53 | + private EditText notes_edit; | |
| 54 | + @ViewInject(R.id.redp_anthor_chongzhi) | |
| 55 | + private Button group_chongzhi; | |
| 56 | + | |
| 57 | + @ViewInject(R.id.redp_anthor_tv_preson) | |
| 58 | + private TextView redp_anthor_tv_preson; | |
| 59 | + @ViewInject(R.id.redp_anthor_iv_preson) | |
| 60 | + private ImageView redp_anthor_iv_preson; | |
| 61 | + @ViewInject(R.id.redp_anthor_sex) | |
| 62 | + private ImageView redp_anthor_sex; | |
| 63 | + @ViewInject(R.id.redp_anthor_xiaomifeng) | |
| 64 | + private TextView redp_anthor_xiaomifeng; | |
| 65 | + | |
| 66 | + private String orid; | |
| 67 | + private String liveid; | |
| 68 | + private UserEntity user; | |
| 69 | + private int chinamoney; | |
| 70 | + | |
| 71 | + @Override | |
| 72 | + public void onDestroyView() { | |
| 73 | + super.onDestroyView(); | |
| 74 | + } | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * | |
| 78 | + */ | |
| 79 | + @SuppressLint("ValidFragment") | |
| 80 | + public RedpAnchorFragment(String orid, String liveid, UserEntity user) { | |
| 81 | + this.orid = orid; | |
| 82 | + this.liveid = liveid; | |
| 83 | + this.user = user; | |
| 84 | + | |
| 85 | + // TODO Auto-generated constructor stub | |
| 86 | + } | |
| 87 | + @SuppressLint("ValidFragment") | |
| 88 | + public RedpAnchorFragment( ) { | |
| 89 | + | |
| 90 | + } | |
| 91 | + | |
| 92 | + @Override | |
| 93 | + protected void getSaveData(Bundle savedInstanceState) { | |
| 94 | + | |
| 95 | + } | |
| 96 | + | |
| 97 | + @Override | |
| 98 | + protected View setConentView(LayoutInflater inflater, ViewGroup container, | |
| 99 | + Bundle savedInstanceState) { | |
| 100 | + View view = inflater.inflate(R.layout.fragment_redp_anchor, null); | |
| 101 | + return view; | |
| 102 | + } | |
| 103 | + | |
| 104 | + @Override | |
| 105 | + protected void findViews(View view) { | |
| 106 | + ViewUtils.inject(this, view); | |
| 107 | + } | |
| 108 | + | |
| 109 | + protected void setListener() { | |
| 110 | + | |
| 111 | + tvSend.setOnClickListener(new OnClickListener() { | |
| 112 | + | |
| 113 | + @Override | |
| 114 | + public void onClick(View v) { | |
| 115 | + // TODO Auto-generated method stub | |
| 116 | + if (ClickUtil.isFastDoubleClick()) { | |
| 117 | + return; | |
| 118 | + } | |
| 119 | + int innum; | |
| 120 | + String num = tv_nums.getText().toString(); | |
| 121 | + if (num.length() > 0) { | |
| 122 | + innum = Integer.parseInt(num); | |
| 123 | + if (innum > 0) { | |
| 124 | + SendGift("1", innum + ""); | |
| 125 | + } else { | |
| 126 | + MyToastUtils.showToast(getActivity(), "请输入正确红包个数"); | |
| 127 | + } | |
| 128 | + } else { | |
| 129 | + MyToastUtils.showToast(getActivity(), "请输入正确红包个数"); | |
| 130 | + } | |
| 131 | + } | |
| 132 | + }); | |
| 133 | + group_chongzhi.setOnClickListener(new OnClickListener() { | |
| 134 | + | |
| 135 | + @Override | |
| 136 | + public void onClick(View v) { | |
| 137 | + // TODO Auto-generated method stub | |
| 138 | + Intent intent = new Intent(getActivity(), | |
| 139 | + MineAccountActivity.class); | |
| 140 | + intent.putExtra("account", chinamoney); | |
| 141 | + BaseInfo.base_user.setChinesecoin(chinamoney * 100); | |
| 142 | + startActivity(intent); | |
| 143 | + } | |
| 144 | + }); | |
| 145 | + | |
| 146 | + tv_nums.addTextChangedListener(new TextWatcher() { | |
| 147 | + | |
| 148 | + @Override | |
| 149 | + public void onTextChanged(CharSequence s, int start, int before, | |
| 150 | + int count) { | |
| 151 | + // TODO Auto-generated method stub | |
| 152 | + if (s.length() > 0) { | |
| 153 | + int t = Integer.parseInt(s.toString()); | |
| 154 | + if (t > chinamoney) { | |
| 155 | + t = chinamoney; | |
| 156 | + tv_nums.setText(t + ""); | |
| 157 | + } | |
| 158 | + } | |
| 159 | + } | |
| 160 | + | |
| 161 | + @Override | |
| 162 | + public void beforeTextChanged(CharSequence s, int start, int count, | |
| 163 | + int after) { | |
| 164 | + // TODO Auto-generated method stub | |
| 165 | + | |
| 166 | + } | |
| 167 | + | |
| 168 | + @Override | |
| 169 | + public void afterTextChanged(Editable s) { | |
| 170 | + // TODO Auto-generated method stub | |
| 171 | + | |
| 172 | + } | |
| 173 | + }); | |
| 174 | + | |
| 175 | + } | |
| 176 | + | |
| 177 | + @Override | |
| 178 | + protected void processLogic() { | |
| 179 | + redp_anthor_tv_preson.setText(user.getName() + ""); | |
| 180 | + if (user.getSex().equalsIgnoreCase("male")) { | |
| 181 | + redp_anthor_sex.setBackgroundResource(R.drawable.user_man); | |
| 182 | + } else { | |
| 183 | + redp_anthor_sex.setBackgroundResource(R.drawable.user_woman); | |
| 184 | + } | |
| 185 | + // imageLoader.displayImage(user.getAvatar(), redp_anthor_iv_preson, | |
| 186 | + // options); | |
| 187 | + PicassoUtils.displayImage(user.getAvatar(), redp_anthor_iv_preson, 1); | |
| 188 | + GetUserInfo(); | |
| 189 | + setListener(); | |
| 190 | + } | |
| 191 | + | |
| 192 | + public void SendGift(String giftid, final String count) { | |
| 193 | + // 请求的路径 | |
| 194 | + String requestUrl = GiftApiBean.sendGiftDetail(BaseInfo.UserId, orid, | |
| 195 | + liveid, giftid, count); | |
| 196 | + | |
| 197 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 198 | + @Override | |
| 199 | + public void onSuccess(String data) { | |
| 200 | + // TODO Auto-generated method stub | |
| 201 | + BaseBean b = JsonUtils.deserialize(data, BaseBean.class); | |
| 202 | + int t = b.getCode(); | |
| 203 | + if (t == 0) { | |
| 204 | + MyToastUtils.showToast(getActivity(), "发送成功"); | |
| 205 | + RedpActivity a = (RedpActivity) getActivity(); | |
| 206 | + ChatMessageBean bean = new ChatMessageBean(Integer | |
| 207 | + .parseInt(count)); | |
| 208 | + EventBus.getDefault().post( | |
| 209 | + new CodeBean(CodeUtils.MUCSENDMSG, bean)); | |
| 210 | + hideKeyboard(); | |
| 211 | + a.finish(); | |
| 212 | + } else if (t == 2003) { | |
| 213 | + MyToastUtils.showToast(getActivity(), "中国币不足,请充值"); | |
| 214 | + } else { | |
| 215 | + MyToastUtils.showToast(getActivity(), "发送失败"); | |
| 216 | + } | |
| 217 | + } | |
| 218 | + }); | |
| 219 | + } | |
| 220 | + | |
| 221 | + private void GetUserInfo() { | |
| 222 | + group_chongzhi.setClickable(false); | |
| 223 | + // 请求的路径 | |
| 224 | + | |
| 225 | + String requestUrl = UserApiBean.requestUserInfo(BaseInfo.UserId, | |
| 226 | + BaseInfo.Captcha, BaseInfo.UserId); | |
| 227 | + | |
| 228 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 229 | + | |
| 230 | + @Override | |
| 231 | + public void onSuccess(String data) { | |
| 232 | + // TODO Auto-generated method stub | |
| 233 | + UserBean user1 = JsonUtils.deserialize(data, UserBean.class); | |
| 234 | + UserEntity user2; | |
| 235 | + int code = user1.getCode(); | |
| 236 | + String description = user1.getDescription(); | |
| 237 | + if (code == 0) { | |
| 238 | + user2 = user1.getData(); | |
| 239 | + group_chongzhi.setClickable(true); | |
| 240 | + chinamoney = user2.getChinesecoin() / 100; | |
| 241 | + redp_anthor_xiaomifeng.setText("您当前中国币 " + chinamoney + ""); | |
| 242 | + } | |
| 243 | + } | |
| 244 | + }); | |
| 245 | + | |
| 246 | + } | |
| 247 | + | |
| 248 | + private void hideKeyboard() { | |
| 249 | + // dismiss_edit.setVisibility(View.GONE); | |
| 250 | + InputMethodManager imm = (InputMethodManager) getActivity() | |
| 251 | + .getSystemService(Context.INPUT_METHOD_SERVICE); | |
| 252 | + imm.hideSoftInputFromWindow(tv_nums.getWindowToken(), 0); | |
| 253 | + } | |
| 254 | + | |
| 255 | +} | ... | ... |
.svn/pristine/04/04cdde5290df227db95b7a213b329718b387f160.svn-base
0 → 100644
No preview for this file type
.svn/pristine/04/04db3c70a9f9c5f4ab793f1034aca910205563c9.svn-base
0 → 100644
No preview for this file type
.svn/pristine/05/05363b63073a718cdc562c8cf5aab815646244c2.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/05/05363b63073a718cdc562c8cf5aab815646244c2.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<merge xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="1px"> | |
| 6 | + | |
| 7 | + <View | |
| 8 | + android:layout_width="match_parent" | |
| 9 | + android:layout_height="1px" | |
| 10 | + android:background="@color/gray_line_color" /> | |
| 11 | +</merge> | |
| 0 | 12 | \ No newline at end of file | ... | ... |
.svn/pristine/05/0555bc524aaf9c98defdcdf1191801580b66e9c0.svn-base
0 → 100644
No preview for this file type
.svn/pristine/05/057fc15792ee82f6000ff3b0053d8f4682082188.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/05/057fc15792ee82f6000ff3b0053d8f4682082188.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 4 | + android:layout_width="match_parent" | |
| 5 | + android:layout_height="match_parent"> | |
| 6 | + | |
| 7 | + <ImageView | |
| 8 | + android:id="@+id/image" | |
| 9 | + android:layout_width="wrap_content" | |
| 10 | + android:layout_height="wrap_content" | |
| 11 | + android:background="@drawable/list_item_image_load_fail" | |
| 12 | + android:contentDescription="@null" /> | |
| 13 | + | |
| 14 | + <TextView | |
| 15 | + android:id="@+id/title" | |
| 16 | + android:layout_width="match_parent" | |
| 17 | + android:layout_height="35dp" | |
| 18 | + android:ellipsize="end" | |
| 19 | + android:gravity="center" | |
| 20 | + android:singleLine="true" | |
| 21 | + android:textColor="@color/text_input_color" | |
| 22 | + android:textSize="14sp" | |
| 23 | + android:layout_below="@+id/image" /> | |
| 24 | + | |
| 25 | +</RelativeLayout> | |
| 0 | 26 | \ No newline at end of file | ... | ... |
.svn/pristine/05/0584c0c6d61787fdec10658d1cabb190be38dcfe.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/05/0584c0c6d61787fdec10658d1cabb190be38dcfe.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:id="@+id/player_control_bar" | |
| 4 | + android:layout_width="wrap_content" | |
| 5 | + android:layout_height="match_parent" | |
| 6 | + android:orientation="vertical"> | |
| 7 | + | |
| 8 | + <!-- Header --> | |
| 9 | + | |
| 10 | + <RelativeLayout | |
| 11 | + android:id="@+id/player_control_top" | |
| 12 | + android:layout_width="fill_parent" | |
| 13 | + android:layout_height="40dp" | |
| 14 | + android:layout_alignParentTop="true" | |
| 15 | + android:background="@color/result_view" | |
| 16 | + android:gravity="center_vertical" | |
| 17 | + android:padding="3dp"> | |
| 18 | + | |
| 19 | + <RelativeLayout | |
| 20 | + android:layout_width="match_parent" | |
| 21 | + android:layout_height="25dp" | |
| 22 | + android:layout_centerVertical="true" | |
| 23 | + android:layout_marginLeft="42dp" | |
| 24 | + android:layout_marginRight="8dp" | |
| 25 | + android:layout_toLeftOf="@+id/btn_comment"> | |
| 26 | + | |
| 27 | + <include layout="@layout/cnplayer_controller_full_top" /> | |
| 28 | + </RelativeLayout> | |
| 29 | + | |
| 30 | + <LinearLayout | |
| 31 | + android:id="@+id/btn_comment" | |
| 32 | + android:layout_width="92dp" | |
| 33 | + android:layout_height="34dp" | |
| 34 | + android:layout_alignParentRight="true" | |
| 35 | + android:layout_centerVertical="true" | |
| 36 | + android:layout_gravity="center_vertical"> | |
| 37 | + | |
| 38 | + <View | |
| 39 | + android:layout_width="1px" | |
| 40 | + android:layout_height="14dp" | |
| 41 | + android:layout_gravity="center_vertical" | |
| 42 | + android:background="@color/main_tab_spinner_line_color" /> | |
| 43 | + | |
| 44 | + <TextView | |
| 45 | + android:id="@+id/top_btn_2_textview" | |
| 46 | + android:layout_width="92dp" | |
| 47 | + android:layout_height="25dp" | |
| 48 | + android:layout_gravity="center" | |
| 49 | + android:gravity="center" | |
| 50 | + android:indeterminate="true" | |
| 51 | + android:text="聊一聊" | |
| 52 | + android:textColor="@color/main_tab_spinner_line_color" | |
| 53 | + android:textSize="15sp" /> | |
| 54 | + </LinearLayout> | |
| 55 | + | |
| 56 | + </RelativeLayout> | |
| 57 | + | |
| 58 | + | |
| 59 | + <RelativeLayout | |
| 60 | + android:id="@+id/player_control_bottom" | |
| 61 | + android:layout_width="match_parent" | |
| 62 | + android:layout_height="72dp" | |
| 63 | + android:layout_alignParentBottom="true" | |
| 64 | + android:background="@color/result_view"> | |
| 65 | + | |
| 66 | + | |
| 67 | + <ImageButton | |
| 68 | + android:id="@+id/pause" | |
| 69 | + android:layout_width="48dp" | |
| 70 | + android:layout_height="48dp" | |
| 71 | + android:layout_centerVertical="true" | |
| 72 | + android:layout_marginRight="6dp" | |
| 73 | + android:background="@null" | |
| 74 | + android:contentDescription="@null" | |
| 75 | + android:padding="6dp" | |
| 76 | + android:scaleType="centerCrop" | |
| 77 | + android:src="@drawable/mc_btn_pause" /> | |
| 78 | + | |
| 79 | + <Button | |
| 80 | + android:id="@+id/open_barrage" | |
| 81 | + android:layout_width="72dp" | |
| 82 | + android:layout_height="28dp" | |
| 83 | + android:layout_centerVertical="true" | |
| 84 | + android:layout_marginLeft="8dp" | |
| 85 | + android:layout_toRightOf="@+id/pause" | |
| 86 | + android:background="@drawable/btn_tanmu" | |
| 87 | + android:gravity="center" | |
| 88 | + android:textColor="@color/TextColorWhite" | |
| 89 | + android:textSize="15sp" | |
| 90 | + android:visibility="gone" /> | |
| 91 | + | |
| 92 | + <android.support.v7.widget.RecyclerView | |
| 93 | + android:id="@+id/player_control_videoss" | |
| 94 | + android:layout_width="match_parent" | |
| 95 | + android:layout_toRightOf="@+id/open_barrage" | |
| 96 | + android:layout_height="72dp" | |
| 97 | + android:layout_marginLeft="16dp" | |
| 98 | + android:scrollbars="none" | |
| 99 | + android:transcriptMode="alwaysScroll" | |
| 100 | + /> | |
| 101 | + </RelativeLayout> | |
| 102 | + | |
| 103 | + | |
| 104 | + <LinearLayout | |
| 105 | + android:id="@+id/player_control_right" | |
| 106 | + android:layout_width="wrap_content" | |
| 107 | + android:layout_height="wrap_content" | |
| 108 | + android:layout_alignParentRight="true" | |
| 109 | + android:layout_centerInParent="true" | |
| 110 | + android:layout_centerVertical="true" | |
| 111 | + android:background="@color/result_view" | |
| 112 | + android:orientation="vertical"> | |
| 113 | + | |
| 114 | + <LinearLayout | |
| 115 | + android:id="@+id/media_share" | |
| 116 | + android:layout_width="45dp" | |
| 117 | + android:layout_height="45dp" | |
| 118 | + android:layout_gravity="center" | |
| 119 | + android:layout_margin="5dp" | |
| 120 | + android:gravity="center" | |
| 121 | + android:orientation="vertical"> | |
| 122 | + | |
| 123 | + <ImageView | |
| 124 | + android:layout_width="30dp" | |
| 125 | + android:layout_height="30dp" | |
| 126 | + android:layout_gravity="center_horizontal" | |
| 127 | + android:contentDescription="@null" | |
| 128 | + android:src="@drawable/btn_detail_share" /> | |
| 129 | + | |
| 130 | + <TextView | |
| 131 | + android:layout_width="wrap_content" | |
| 132 | + android:layout_height="wrap_content" | |
| 133 | + android:focusable="true" | |
| 134 | + android:gravity="center" | |
| 135 | + android:text="分享" | |
| 136 | + android:textAlignment="center" | |
| 137 | + android:textColor="@color/main_tab_spinner_line_color" | |
| 138 | + android:textSize="12sp" /> | |
| 139 | + </LinearLayout> | |
| 140 | + | |
| 141 | + | |
| 142 | + </LinearLayout> | |
| 143 | +</RelativeLayout> | |
| 0 | 144 | \ No newline at end of file | ... | ... |
.svn/pristine/05/0586a992524b09380ba4f8b5ee39435d2c56465c.svn-base
0 → 100644
No preview for this file type
.svn/pristine/05/05bdf1856b28c08d674fd6f6ba9cd6b7357714c0.svn-base
0 → 100644
No preview for this file type
.svn/pristine/05/05cc5f9814403c41a423a72921b01977d20cf865.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/05/05cc5f9814403c41a423a72921b01977d20cf865.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:drawable="@drawable/ic_web_forward_pressed" android:state_pressed="true" /> | |
| 4 | + <item android:drawable="@drawable/ic_web_forward_news" android:state_pressed="false" /> | |
| 5 | +</selector> | ... | ... |
.svn/pristine/05/05e67c089a91c1072d999f53d47fa7404470843f.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/05/05e67c089a91c1072d999f53d47fa7404470843f.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午2:52:31 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.ui.dialog; | |
| 6 | + | |
| 7 | +import android.app.AlertDialog; | |
| 8 | +import android.content.Context; | |
| 9 | +import android.os.Bundle; | |
| 10 | +import android.view.View; | |
| 11 | +import android.widget.Button; | |
| 12 | + | |
| 13 | +import com.ivt.android.me.R; | |
| 14 | +import com.ivt.android.me.api.LiveApiBean; | |
| 15 | +import com.ivt.android.me.bean.ChatMessageBean; | |
| 16 | +import com.ivt.android.me.bean.StopBean; | |
| 17 | +import com.ivt.android.me.bean.evenbus.CodeBean; | |
| 18 | +import com.ivt.android.me.constant.BaseInfo; | |
| 19 | +import com.ivt.android.me.constant.CodeUtils; | |
| 20 | +import com.ivt.android.me.utils.httputil.HttpUtils; | |
| 21 | +import com.ivt.android.me.utils.httputil.HttpUtils.HttpCallback; | |
| 22 | +import com.ivt.android.me.utils.httputil.JsonUtils; | |
| 23 | +import com.ivt.android.me.utils.uplive.KSYUpLiveUtil; | |
| 24 | + | |
| 25 | +import de.greenrobot.event.EventBus; | |
| 26 | + | |
| 27 | +/** | |
| 28 | + * @author 郎咸智 | |
| 29 | + * @version 创建时间:2016-4-30 下午2:52:31 类说明 | |
| 30 | + */ | |
| 31 | +public class UpliveCloseDialog extends AlertDialog implements | |
| 32 | + View.OnClickListener { | |
| 33 | + | |
| 34 | + private Button close; | |
| 35 | + private Button t; | |
| 36 | + private Context context; | |
| 37 | + private String roomid; | |
| 38 | + | |
| 39 | + public UpliveCloseDialog(Context context, int theme, String roomid) { | |
| 40 | + super(context, theme); | |
| 41 | + // TODO Auto-generated constructor stub | |
| 42 | + this.context = context; | |
| 43 | + this.roomid = roomid; | |
| 44 | + | |
| 45 | + } | |
| 46 | + | |
| 47 | + @Override | |
| 48 | + protected void onCreate(Bundle savedInstanceState) { | |
| 49 | + // TODO Auto-generated method stub | |
| 50 | + super.onCreate(savedInstanceState); | |
| 51 | + UpliveCloseDialog.this.setContentView(R.layout.dialog_uplive_close); | |
| 52 | + close = (Button) this.findViewById(R.id.uplive_no); | |
| 53 | + t = (Button) this.findViewById(R.id.uplive_true); | |
| 54 | + close.setOnClickListener(this); | |
| 55 | + t.setOnClickListener(this); | |
| 56 | + } | |
| 57 | + | |
| 58 | + @Override | |
| 59 | + public void onClick(View v) { | |
| 60 | + // TODO Auto-generated method stub | |
| 61 | + switch (v.getId()) { | |
| 62 | + case R.id.uplive_no: | |
| 63 | + this.dismiss(); | |
| 64 | + break; | |
| 65 | + case R.id.uplive_true: | |
| 66 | + this.dismiss(); | |
| 67 | + KSYUpLiveUtil.getInstance().StopUpLive(); | |
| 68 | + KSYUpLiveUtil.getInstance().GetKSYStreamer().onPause(); | |
| 69 | + stopLive(roomid + ""); | |
| 70 | + break; | |
| 71 | + default: | |
| 72 | + break; | |
| 73 | + } | |
| 74 | + } | |
| 75 | + | |
| 76 | + public void stopLive(String liveid) { | |
| 77 | + // 请求的路径 | |
| 78 | + String requestUrl = LiveApiBean.stopLive(BaseInfo.UserId,BaseInfo.Captcha, liveid); | |
| 79 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 80 | + @Override | |
| 81 | + public void onSuccess(String data) { | |
| 82 | + // TODO Auto-generated method stub | |
| 83 | + StopBean bean = JsonUtils.deserialize(data, StopBean.class); | |
| 84 | + new UpliveCloseTrueDialog(context, R.style.dialog, 1, bean.getAudienceTotalNum(), bean.getMeTotal()).show(); | |
| 85 | + ChatMessageBean be = new ChatMessageBean(bean.getMeTotal(),bean.getAudienceTotalNum()); | |
| 86 | + EventBus.getDefault().post(new CodeBean(CodeUtils.MUCSENDMSG, be)); | |
| 87 | + } | |
| 88 | + }); | |
| 89 | + | |
| 90 | + } | |
| 91 | + | |
| 92 | +} | ... | ... |
.svn/pristine/05/05ea4b63dad431a06137b2e523af5c3a41147d48.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/0602afe3808a60a5c754938503bcff9f049d6bc8.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/0642350b74d1de0fde97443a558d39ff4c71d211.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/0642350b74d1de0fde97443a558d39ff4c71d211.svn-base | |
| 1 | +package com.ivt.android.me.constant; | |
| 2 | + | |
| 3 | +import android.os.Environment; | |
| 4 | + | |
| 5 | +import com.ivt.android.me.MainApplication; | |
| 6 | + | |
| 7 | + | |
| 8 | +public class BaseInfo { | |
| 9 | + | |
| 10 | + /** 获取SD卡路径 */ | |
| 11 | + public static final String SD_ROOT = Environment | |
| 12 | + .getExternalStorageDirectory().getPath(); | |
| 13 | + /** MePack */ | |
| 14 | + public static final String ME_PATH = SD_ROOT + "/me"; | |
| 15 | + /** 头像保存地址 */ | |
| 16 | + public static final String HEAD_PATH = ME_PATH + "/head.jpg"; | |
| 17 | + public static final String MAXHEAD_PATH = ME_PATH + "/maxhead.jpg"; | |
| 18 | + public static final String FEED_PATH = ME_PATH + "/fankui.jpg"; | |
| 19 | + public static final String ADVERT_PATH = ME_PATH + "/advert.jpg"; | |
| 20 | + public static final String shouchi = ME_PATH + "/shouchi.jpg"; | |
| 21 | + public static final String zheng = ME_PATH + "/zheng.jpg"; | |
| 22 | + public static final String fan = ME_PATH + "/fan.jpg"; | |
| 23 | + public static boolean isSupportMediaCodecHardDecoder; | |
| 24 | + public static boolean IsRecharge = false; | |
| 25 | + public static String IsWXlogin = "-1"; | |
| 26 | + | |
| 27 | + public static boolean PushIsLiveIng = false; | |
| 28 | + | |
| 29 | + public static String QuDaoName = ""; | |
| 30 | + | |
| 31 | + /** user基本信息 */ | |
| 32 | + public static com.ivt.android.me.bean.UserEntity base_user; | |
| 33 | + public static String UserId; | |
| 34 | + public static String Captcha; | |
| 35 | + /** 当前房间的ID */ | |
| 36 | + public static int ROOMID; | |
| 37 | + | |
| 38 | + /** app公式系统 */ | |
| 39 | + public static String metochina; | |
| 40 | + public static String rmbtochina; | |
| 41 | + public static String chinatome; | |
| 42 | + public static String chinatormb; | |
| 43 | + public static String metormb; | |
| 44 | + public static String heartbeat; | |
| 45 | + public static String JoinRoomSmm; | |
| 46 | + public static String Advretcode; | |
| 47 | + public static String Advreturl; | |
| 48 | + public static String AdvretconUrl; | |
| 49 | + | |
| 50 | + // 卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍《获取手机版本》卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍 | |
| 51 | + /** 屏幕高度 */ | |
| 52 | + public static int SCREEN_HEIGHT; | |
| 53 | + /** 屏幕高度 */ | |
| 54 | + public static int SCREEN_WIDTH; | |
| 55 | + /** 包名 */ | |
| 56 | + public static String PACKNAME; | |
| 57 | + /** 型号 */ | |
| 58 | + public static String MODEL; | |
| 59 | + /** 唯一标识 */ | |
| 60 | + public static String DeviceId; | |
| 61 | + | |
| 62 | + /** 唯一标识 */ | |
| 63 | + public static String NEW_VERSION; | |
| 64 | + /** 品牌 */ | |
| 65 | + public static String BRAND; | |
| 66 | + /** 软键盘是否开始 */ | |
| 67 | + public static boolean IsShow = true; | |
| 68 | + /** User实体类保存在共享参数的Key名 **/ | |
| 69 | + public static String SharePreName_User = "user"; | |
| 70 | + public static String SharePreName_IsFirst = "IsFirst"; | |
| 71 | + public static String SharePreName_AdvertCode = "AdvertCode"; | |
| 72 | + public static String SharePreName_GiftTime = "shareGiftTime"; | |
| 73 | + /** 是否有网络 */ | |
| 74 | + public static boolean ISNETCONTEXT; | |
| 75 | + | |
| 76 | + /** 是否已经登录,false是不登陆,true是已经登录的状态 */ | |
| 77 | + public static boolean IsLogin = false; | |
| 78 | + /** xmpp是否已经登录,false是不登陆,true是已经登录的状态 */ | |
| 79 | + public static boolean IsXmppLogin = false; | |
| 80 | + /** 是否第一次,false是第二次,true是第一次打开 */ | |
| 81 | + public static boolean IsFirstOpen = true; | |
| 82 | + /** 是否正在直播 */ | |
| 83 | + public static boolean Islive = false; | |
| 84 | + /** 是否正在观看直播 */ | |
| 85 | + public static boolean IsSeelive = false; | |
| 86 | + /** 分享是否成功 */ | |
| 87 | + public static boolean IsliveShare = false; | |
| 88 | + public static long timeDiff; | |
| 89 | + // 卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍《经纬度》卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍 | |
| 90 | + /** 精度 */ | |
| 91 | + public static Double longitude = 0.0; | |
| 92 | + /** 纬度 */ | |
| 93 | + public static Double latitude = 0.0; | |
| 94 | + | |
| 95 | + /******************* 三方登陆参数 ************************************/ | |
| 96 | + /******* 微博 ************************/ | |
| 97 | + public static final String WEIBO_APP_KEY = "3479947879"; | |
| 98 | + public static final String REDIRECT_URL = "http://sns.whalecloud.com"; | |
| 99 | + public static final String SCOPE = "email,direct_messages_read,direct_messages_write," | |
| 100 | + + "friendships_groups_read,friendships_groups_write,statuses_to_me_read," | |
| 101 | + + "follow_app_official_microblog," + "invitation_write"; | |
| 102 | + /*********** QQ **********************/ | |
| 103 | + public static final String QQ_mAppid = "1105410876"; | |
| 104 | + /*********** 微信 *********************/ | |
| 105 | + public static final String WEIXIN_APP_ID = "wxa249cfc8d884386e"; | |
| 106 | + // 卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍《xmpp连接配置参数》卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍 | |
| 107 | + public static String host = ""; | |
| 108 | + public final static String XMPP_NAME = "conference.localhost"; | |
| 109 | + public final static int XMPP_PORT = 5222; | |
| 110 | + | |
| 111 | + public static String XMPP_HOST() { | |
| 112 | + if (MainApplication.IS_DEBUG) { | |
| 113 | + host = "me.demo.bjivt.com"; | |
| 114 | + } else { | |
| 115 | + host = "xmpp.me.cnlive.com"; | |
| 116 | + } | |
| 117 | + return host; | |
| 118 | + } | |
| 119 | + | |
| 120 | + public static final String LIVE_MSG = "我们提倡绿色直播,封面和直播内容含吸烟、饮酒、低俗、引诱、暴露等都将会被停封账号,网警24小时在线巡查哦!"; | |
| 121 | + | |
| 122 | + /******************************************************** 分享分类 *********************************************/ | |
| 123 | + /** qq好友分享 */ | |
| 124 | + public static int QQUSERSHAR = 1000; | |
| 125 | + /** qq空间分享 */ | |
| 126 | + public static int QQHOOMRSHAR = 1001; | |
| 127 | + /** 微信好友分享 */ | |
| 128 | + public static int WXUSERSHAR = 1002; | |
| 129 | + /** 微信空间分享 */ | |
| 130 | + public static int WXROOMSHAR = 1003; | |
| 131 | + /** 微博分享 */ | |
| 132 | + public static int WBROOMSHAR = 1004; | |
| 133 | + | |
| 134 | + // 卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍三方支付卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍卍 | |
| 135 | + // 中投支付 | |
| 136 | + public static String sp_id = "iowhukpd38"; // 找相关负责人获取 | |
| 137 | + public static String sp_key = "9809c71115aa475fbb655ea12a915043"; // 找相关负责人获取 | |
| 138 | + | |
| 139 | +} | ... | ... |
.svn/pristine/06/06504556daaa04ebecf96053b4d08d0df9b13a82.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06520fc6fcd6a5ff37bd6202b747b58d1e301449.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06637090440abf5614b464bcddd1cf378626a57c.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/06637090440abf5614b464bcddd1cf378626a57c.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午12:10:32 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.model.main; | |
| 6 | + | |
| 7 | +import java.util.Iterator; | |
| 8 | +import java.util.List; | |
| 9 | +import java.util.Timer; | |
| 10 | +import java.util.TimerTask; | |
| 11 | + | |
| 12 | +import android.content.Intent; | |
| 13 | + | |
| 14 | +import com.ivt.android.me.MainApplication; | |
| 15 | +import com.ivt.android.me.api.TotalApiBean; | |
| 16 | +import com.ivt.android.me.bean.total.TotalApiEntity; | |
| 17 | +import com.ivt.android.me.bean.total.TotalBean; | |
| 18 | +import com.ivt.android.me.constant.BaseInfo; | |
| 19 | +import com.ivt.android.me.ui.activity.main.AdvertActivity; | |
| 20 | +import com.ivt.android.me.ui.base.BaseActivity; | |
| 21 | +import com.ivt.android.me.utils.httputil.HttpUtils; | |
| 22 | +import com.ivt.android.me.utils.httputil.HttpUtils.HttpCallback; | |
| 23 | +import com.ivt.android.me.utils.httputil.JsonUtils; | |
| 24 | +import com.ivt.android.me.utils.publics.LocationUserUtil; | |
| 25 | +import com.ivt.android.me.utils.publics.SharePreferenceUtil; | |
| 26 | + | |
| 27 | +public class ModleWelcome implements IWelcome { | |
| 28 | + | |
| 29 | + private BaseActivity context; | |
| 30 | + private Intent intent; | |
| 31 | + | |
| 32 | + public ModleWelcome(BaseActivity context) { | |
| 33 | + // TODO Auto-generated constructor stub | |
| 34 | + this.context = context; | |
| 35 | + StartTotalThread(); | |
| 36 | + IsLogin(); | |
| 37 | + IsFirstOpen(); | |
| 38 | + } | |
| 39 | + | |
| 40 | + @Override | |
| 41 | + public void IsFirstOpen() { | |
| 42 | + // TODO Auto-generated method stub | |
| 43 | + Boolean t = SharePreferenceUtil.contains(MainApplication.getInstance(), | |
| 44 | + BaseInfo.SharePreName_IsFirst); | |
| 45 | + if (t) { | |
| 46 | + BaseInfo.IsFirstOpen = SharePreferenceUtil.getBoolean( | |
| 47 | + MainApplication.getInstance(), | |
| 48 | + BaseInfo.SharePreName_IsFirst, true); | |
| 49 | + } else { | |
| 50 | + BaseInfo.IsFirstOpen = true; | |
| 51 | + SharePreferenceUtil.setValue(MainApplication.getInstance(), | |
| 52 | + BaseInfo.SharePreName_IsFirst, false); | |
| 53 | + } | |
| 54 | + } | |
| 55 | + | |
| 56 | + @Override | |
| 57 | + public void StartTotalThread() { | |
| 58 | + // TODO Auto-generated method stuba | |
| 59 | + String url = TotalApiBean.requestAppInfo(BaseInfo.MODEL, | |
| 60 | + BaseInfo.BRAND, BaseInfo.DeviceId, BaseInfo.SCREEN_WIDTH + "", | |
| 61 | + BaseInfo.SCREEN_HEIGHT + "", BaseInfo.NEW_VERSION + ".0", "", | |
| 62 | + "", "Android", BaseInfo.PACKNAME, ""); | |
| 63 | + HttpUtils.getbase(url, new HttpCallback() { | |
| 64 | + | |
| 65 | + public void onSuccess(String data) { | |
| 66 | + // TODO Auto-generated method stub | |
| 67 | + TotalBean bean = JsonUtils.deserialize(data, TotalBean.class); | |
| 68 | + | |
| 69 | + int code = bean.getCode(); | |
| 70 | + if (code == 0) { | |
| 71 | + List<TotalApiEntity> lits = bean.getList(); | |
| 72 | + Iterator<TotalApiEntity> it = lits.iterator(); | |
| 73 | + | |
| 74 | + while (it.hasNext()) { | |
| 75 | + TotalApiEntity totalApiEntity = (TotalApiEntity) it | |
| 76 | + .next(); | |
| 77 | + switch (totalApiEntity.getType()) { | |
| 78 | + case 2: | |
| 79 | + BaseInfo.metochina = totalApiEntity | |
| 80 | + .getAdditionData(); | |
| 81 | + break; | |
| 82 | + case 3: | |
| 83 | + BaseInfo.rmbtochina = totalApiEntity | |
| 84 | + .getAdditionData(); | |
| 85 | + break; | |
| 86 | + // 广告图 | |
| 87 | + case 4: | |
| 88 | + BaseInfo.Advretcode = totalApiEntity.getValue(); | |
| 89 | + BaseInfo.Advreturl = totalApiEntity.getAdditionData(); | |
| 90 | + BaseInfo.AdvretconUrl = totalApiEntity.getConUrl(); | |
| 91 | + break; | |
| 92 | + case 5: | |
| 93 | + BaseInfo.heartbeat = totalApiEntity | |
| 94 | + .getAdditionData(); | |
| 95 | + break; | |
| 96 | + case 6: | |
| 97 | + BaseInfo.chinatome = totalApiEntity | |
| 98 | + .getAdditionData(); | |
| 99 | + break; | |
| 100 | + case 7: | |
| 101 | + BaseInfo.chinatormb = totalApiEntity | |
| 102 | + .getAdditionData(); | |
| 103 | + break; | |
| 104 | + case 8: | |
| 105 | + BaseInfo.JoinRoomSmm = totalApiEntity | |
| 106 | + .getAdditionData(); | |
| 107 | + break; | |
| 108 | + case 9: | |
| 109 | + BaseInfo.metormb = totalApiEntity.getAdditionData(); | |
| 110 | + break; | |
| 111 | + default: | |
| 112 | + break; | |
| 113 | + } | |
| 114 | + } | |
| 115 | + } | |
| 116 | + | |
| 117 | + } | |
| 118 | + }); | |
| 119 | + | |
| 120 | + } | |
| 121 | + | |
| 122 | + @Override | |
| 123 | + public void IsLogin() { | |
| 124 | + // TODO Auto-generated method stub | |
| 125 | + Boolean t = LocationUserUtil.IsHaveUser(); | |
| 126 | + if (t) { | |
| 127 | + BaseInfo.IsLogin = true; | |
| 128 | + } else { | |
| 129 | + BaseInfo.IsLogin = false; | |
| 130 | + } | |
| 131 | + } | |
| 132 | + | |
| 133 | + @Override | |
| 134 | + public void GoToNext() { | |
| 135 | + // TODO Auto-generated method stub | |
| 136 | + Timer time = new Timer(); | |
| 137 | + TimerTask task = new TimerTask() { | |
| 138 | + @Override | |
| 139 | + public void run() { | |
| 140 | + intent = new Intent(context, AdvertActivity.class); | |
| 141 | + context.startActivity(intent); | |
| 142 | + context.finish(); | |
| 143 | + } | |
| 144 | + }; | |
| 145 | + time.schedule(task, 3000); | |
| 146 | + } | |
| 147 | +} | ... | ... |
.svn/pristine/06/068cb493933a1fe08ac55e6800abe231034a98df.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/068cb493933a1fe08ac55e6800abe231034a98df.svn-base | |
| 1 | +package com.ivt.android.me.utils.xmpp; | |
| 2 | + | |
| 3 | +public class Xml { | |
| 4 | + private String name; | |
| 5 | + private String sex; | |
| 6 | + private String exp; | |
| 7 | + private String signature; | |
| 8 | + private String avatarUrl; | |
| 9 | + private String level; | |
| 10 | + | |
| 11 | + public String getname() { | |
| 12 | + return name; | |
| 13 | + } | |
| 14 | + | |
| 15 | + public void setname(String name) { | |
| 16 | + this.name = name; | |
| 17 | + } | |
| 18 | + | |
| 19 | + public String getSex() { | |
| 20 | + return sex; | |
| 21 | + } | |
| 22 | + | |
| 23 | + public void setSex(String sex) { | |
| 24 | + this.sex = sex; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public String getExp() { | |
| 28 | + return exp; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setExp(String exp) { | |
| 32 | + this.exp = exp; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String getSignature() { | |
| 36 | + return signature; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public void setSignature(String signature) { | |
| 40 | + this.signature = signature; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public String getAvatarUrl() { | |
| 44 | + return avatarUrl; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public void setAvatarUrl(String avatarUrl) { | |
| 48 | + this.avatarUrl = avatarUrl; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public String getLevel() { | |
| 52 | + return level; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public void setLevel(String level) { | |
| 56 | + this.level = level; | |
| 57 | + } | |
| 58 | + | |
| 59 | + /* | |
| 60 | + * (non-Javadoc) | |
| 61 | + * | |
| 62 | + * @see java.lang.Object#toString() | |
| 63 | + */ | |
| 64 | + @Override | |
| 65 | + public String toString() { | |
| 66 | + return "Xml [name=" + name + ", sex=" + sex + ", exp=" + exp | |
| 67 | + + ", signature=" + signature + ", avatarUrl=" + avatarUrl | |
| 68 | + + ", level=" + level + "]"; | |
| 69 | + } | |
| 70 | + | |
| 71 | +} | ... | ... |
.svn/pristine/06/06974e02f4d9b9b3523808d9b1fcecfbf64595a0.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/069bc6c1cabf6e2ca6b490157f957960beb98c09.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06a6321829b806175b8f3c6cf2a53d924a0d65f8.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06b21448f97c44a64571a2362cfdaae2d645f7c6.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/06b21448f97c44a64571a2362cfdaae2d645f7c6.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:shareInterpolator="false"> | |
| 4 | + <translate | |
| 5 | + android:duration="400" | |
| 6 | + android:fromXDelta="100.0%" | |
| 7 | + android:fromYDelta="0.0%" | |
| 8 | + android:toXDelta="0.0%" | |
| 9 | + android:toYDelta="0.0%" /> | |
| 10 | + <alpha | |
| 11 | + android:fromAlpha="0" | |
| 12 | + android:toAlpha="1" | |
| 13 | + android:duration="300" /> | |
| 14 | +</set> | ... | ... |
.svn/pristine/06/06be926e4dcb378d76e5957f68a1cd4454f28850.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/06be926e4dcb378d76e5957f68a1cd4454f28850.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + | |
| 4 | + <item android:drawable="@drawable/ready_kongjianshare_check" android:state_checked="true" android:state_enabled="true"/> | |
| 5 | + <item android:drawable="@drawable/ready_kongjianshare_nocheck" android:state_checked="false" android:state_enabled="true"/> | |
| 6 | + | |
| 7 | +</selector> | |
| 0 | 8 | \ No newline at end of file | ... | ... |
.svn/pristine/06/06c36fedbf382df7a59dda799012cbb8cd3b1e2f.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06d9151f79988679a32c33f86306c2d8af1f899c.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/06/06d9151f79988679a32c33f86306c2d8af1f899c.svn-base | |
| 1 | +package com.ivt.android.me.utils.uplive; | |
| 2 | + | |
| 3 | +import java.io.ByteArrayOutputStream; | |
| 4 | +import java.io.File; | |
| 5 | +import java.io.IOException; | |
| 6 | +import java.io.InputStream; | |
| 7 | +import java.io.RandomAccessFile; | |
| 8 | +import java.net.HttpURLConnection; | |
| 9 | +import java.net.MalformedURLException; | |
| 10 | +import java.net.URL; | |
| 11 | +import java.net.URLConnection; | |
| 12 | + | |
| 13 | +import junit.framework.Assert; | |
| 14 | +import android.graphics.Bitmap; | |
| 15 | +import android.graphics.Bitmap.CompressFormat; | |
| 16 | +import android.graphics.BitmapFactory; | |
| 17 | +import android.util.Log; | |
| 18 | + | |
| 19 | +public class WXUtil { | |
| 20 | + | |
| 21 | + private static final String TAG = "SDK_Sample.Util"; | |
| 22 | + | |
| 23 | + public static byte[] bmpToByteArray(final Bitmap bmp, | |
| 24 | + final boolean needRecycle) { | |
| 25 | + ByteArrayOutputStream output = new ByteArrayOutputStream(); | |
| 26 | + bmp.compress(CompressFormat.PNG, 100, output); | |
| 27 | + if (needRecycle) { | |
| 28 | + bmp.recycle(); | |
| 29 | + } | |
| 30 | + | |
| 31 | + byte[] result = output.toByteArray(); | |
| 32 | + try { | |
| 33 | + output.close(); | |
| 34 | + } catch (Exception e) { | |
| 35 | + e.printStackTrace(); | |
| 36 | + } | |
| 37 | + | |
| 38 | + return result; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public static byte[] getHtmlByteArray(final String url) { | |
| 42 | + URL htmlUrl = null; | |
| 43 | + InputStream inStream = null; | |
| 44 | + try { | |
| 45 | + htmlUrl = new URL(url); | |
| 46 | + URLConnection connection = htmlUrl.openConnection(); | |
| 47 | + HttpURLConnection httpConnection = (HttpURLConnection) connection; | |
| 48 | + int responseCode = httpConnection.getResponseCode(); | |
| 49 | + if (responseCode == HttpURLConnection.HTTP_OK) { | |
| 50 | + inStream = httpConnection.getInputStream(); | |
| 51 | + } | |
| 52 | + } catch (MalformedURLException e) { | |
| 53 | + e.printStackTrace(); | |
| 54 | + } catch (IOException e) { | |
| 55 | + e.printStackTrace(); | |
| 56 | + } | |
| 57 | + byte[] data = inputStreamToByte(inStream); | |
| 58 | + | |
| 59 | + return data; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public static byte[] inputStreamToByte(InputStream is) { | |
| 63 | + try { | |
| 64 | + ByteArrayOutputStream bytestream = new ByteArrayOutputStream(); | |
| 65 | + int ch; | |
| 66 | + while ((ch = is.read()) != -1) { | |
| 67 | + bytestream.write(ch); | |
| 68 | + } | |
| 69 | + byte imgdata[] = bytestream.toByteArray(); | |
| 70 | + bytestream.close(); | |
| 71 | + return imgdata; | |
| 72 | + } catch (Exception e) { | |
| 73 | + e.printStackTrace(); | |
| 74 | + } | |
| 75 | + | |
| 76 | + return null; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public static byte[] readFromFile(String fileName, int offset, int len) { | |
| 80 | + if (fileName == null) { | |
| 81 | + return null; | |
| 82 | + } | |
| 83 | + | |
| 84 | + File file = new File(fileName); | |
| 85 | + if (!file.exists()) { | |
| 86 | + Log.i(TAG, "readFromFile: file not found"); | |
| 87 | + return null; | |
| 88 | + } | |
| 89 | + | |
| 90 | + if (len == -1) { | |
| 91 | + len = (int) file.length(); | |
| 92 | + } | |
| 93 | + | |
| 94 | + Log.d(TAG, "readFromFile : offset = " + offset + " len = " + len | |
| 95 | + + " offset + len = " + (offset + len)); | |
| 96 | + | |
| 97 | + if (offset < 0) { | |
| 98 | + Log.e(TAG, "readFromFile invalid offset:" + offset); | |
| 99 | + return null; | |
| 100 | + } | |
| 101 | + if (len <= 0) { | |
| 102 | + Log.e(TAG, "readFromFile invalid len:" + len); | |
| 103 | + return null; | |
| 104 | + } | |
| 105 | + if (offset + len > (int) file.length()) { | |
| 106 | + Log.e(TAG, "readFromFile invalid file len:" + file.length()); | |
| 107 | + return null; | |
| 108 | + } | |
| 109 | + | |
| 110 | + byte[] b = null; | |
| 111 | + try { | |
| 112 | + RandomAccessFile in = new RandomAccessFile(fileName, "r"); | |
| 113 | + b = new byte[len]; // ���������ļ���С������ | |
| 114 | + in.seek(offset); | |
| 115 | + in.readFully(b); | |
| 116 | + in.close(); | |
| 117 | + | |
| 118 | + } catch (Exception e) { | |
| 119 | + Log.e(TAG, "readFromFile : errMsg = " + e.getMessage()); | |
| 120 | + e.printStackTrace(); | |
| 121 | + } | |
| 122 | + return b; | |
| 123 | + } | |
| 124 | + | |
| 125 | + private static final int MAX_DECODE_PICTURE_SIZE = 1920 * 1440; | |
| 126 | + | |
| 127 | + public static Bitmap extractThumbNail(final String path, final int height, | |
| 128 | + final int width, final boolean crop) { | |
| 129 | + Assert.assertTrue(path != null && !path.equals("") && height > 0 | |
| 130 | + && width > 0); | |
| 131 | + | |
| 132 | + BitmapFactory.Options options = new BitmapFactory.Options(); | |
| 133 | + | |
| 134 | + try { | |
| 135 | + options.inJustDecodeBounds = true; | |
| 136 | + Bitmap tmp = BitmapFactory.decodeFile(path, options); | |
| 137 | + if (tmp != null) { | |
| 138 | + tmp.recycle(); | |
| 139 | + tmp = null; | |
| 140 | + } | |
| 141 | + | |
| 142 | + Log.d(TAG, "extractThumbNail: round=" + width + "x" + height | |
| 143 | + + ", crop=" + crop); | |
| 144 | + final double beY = options.outHeight * 1.0 / height; | |
| 145 | + final double beX = options.outWidth * 1.0 / width; | |
| 146 | + Log.d(TAG, "extractThumbNail: extract beX = " + beX + ", beY = " | |
| 147 | + + beY); | |
| 148 | + options.inSampleSize = (int) (crop ? (beY > beX ? beX : beY) | |
| 149 | + : (beY < beX ? beX : beY)); | |
| 150 | + if (options.inSampleSize <= 1) { | |
| 151 | + options.inSampleSize = 1; | |
| 152 | + } | |
| 153 | + | |
| 154 | + // NOTE: out of memory error | |
| 155 | + while (options.outHeight * options.outWidth / options.inSampleSize > MAX_DECODE_PICTURE_SIZE) { | |
| 156 | + options.inSampleSize++; | |
| 157 | + } | |
| 158 | + | |
| 159 | + int newHeight = height; | |
| 160 | + int newWidth = width; | |
| 161 | + if (crop) { | |
| 162 | + if (beY > beX) { | |
| 163 | + newHeight = (int) (newWidth * 1.0 * options.outHeight / options.outWidth); | |
| 164 | + } else { | |
| 165 | + newWidth = (int) (newHeight * 1.0 * options.outWidth / options.outHeight); | |
| 166 | + } | |
| 167 | + } else { | |
| 168 | + if (beY < beX) { | |
| 169 | + newHeight = (int) (newWidth * 1.0 * options.outHeight / options.outWidth); | |
| 170 | + } else { | |
| 171 | + newWidth = (int) (newHeight * 1.0 * options.outWidth / options.outHeight); | |
| 172 | + } | |
| 173 | + } | |
| 174 | + | |
| 175 | + options.inJustDecodeBounds = false; | |
| 176 | + | |
| 177 | + Log.i(TAG, "bitmap required size=" + newWidth + "x" + newHeight | |
| 178 | + + ", orig=" + options.outWidth + "x" + options.outHeight | |
| 179 | + + ", sample=" + options.inSampleSize); | |
| 180 | + Bitmap bm = BitmapFactory.decodeFile(path, options); | |
| 181 | + if (bm == null) { | |
| 182 | + Log.e(TAG, "bitmap decode failed"); | |
| 183 | + return null; | |
| 184 | + } | |
| 185 | + | |
| 186 | + Log.i(TAG, | |
| 187 | + "bitmap decoded size=" + bm.getWidth() + "x" | |
| 188 | + + bm.getHeight()); | |
| 189 | + final Bitmap scale = Bitmap.createScaledBitmap(bm, newWidth, | |
| 190 | + newHeight, true); | |
| 191 | + if (scale != null) { | |
| 192 | + bm.recycle(); | |
| 193 | + bm = scale; | |
| 194 | + } | |
| 195 | + | |
| 196 | + if (crop) { | |
| 197 | + final Bitmap cropped = Bitmap.createBitmap(bm, | |
| 198 | + (bm.getWidth() - width) >> 1, | |
| 199 | + (bm.getHeight() - height) >> 1, width, height); | |
| 200 | + if (cropped == null) { | |
| 201 | + return bm; | |
| 202 | + } | |
| 203 | + | |
| 204 | + bm.recycle(); | |
| 205 | + bm = cropped; | |
| 206 | + Log.i(TAG, | |
| 207 | + "bitmap croped size=" + bm.getWidth() + "x" | |
| 208 | + + bm.getHeight()); | |
| 209 | + } | |
| 210 | + return bm; | |
| 211 | + | |
| 212 | + } catch (final OutOfMemoryError e) { | |
| 213 | + Log.e(TAG, "decode bitmap failed: " + e.getMessage()); | |
| 214 | + options = null; | |
| 215 | + } | |
| 216 | + | |
| 217 | + return null; | |
| 218 | + } | |
| 219 | +} | ... | ... |
.svn/pristine/06/06da4fed1a74bca2f932f587c4a6fb7c7ac4f037.svn-base
0 → 100644
No preview for this file type
.svn/pristine/06/06ede9285e8a0126f8d309e689ec66df99768d80.svn-base
0 → 100644
No preview for this file type
.svn/pristine/07/0717327584acafa83bd6c4a8c6dceb9f9726f1dd.svn-base
0 → 100644
No preview for this file type
.svn/pristine/07/0770ed0f85248b925cbd5fa031debd40a2e363f3.svn-base
0 → 100644
No preview for this file type
.svn/pristine/07/079974e91d9a1aedee69af0441f3f30b947b3a94.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/07/079974e91d9a1aedee69af0441f3f30b947b3a94.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <item android:state_pressed="true" android:drawable="@drawable/btn_retry_sel" /> | |
| 4 | + <item android:state_pressed="false" android:drawable="@drawable/btn_retry_nor" /> | |
| 5 | +</selector> | |
| 0 | 6 | \ No newline at end of file | ... | ... |
.svn/pristine/07/079d2dd716802a15f2fb5b2db4da25b7ce94f8ed.svn-base
0 → 100644
No preview for this file type
.svn/pristine/07/07a8ce8eab83023171df74e835f74777b8abd573.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/07/07a8ce8eab83023171df74e835f74777b8abd573.svn-base | |
| 1 | +package com.ivt.android.me.ui.activity.pay; | |
| 2 | + | |
| 3 | +import android.app.Dialog; | |
| 4 | +import android.content.Context; | |
| 5 | +import android.content.SharedPreferences; | |
| 6 | +import android.graphics.Bitmap; | |
| 7 | +import android.graphics.BitmapFactory; | |
| 8 | +import android.text.TextUtils; | |
| 9 | +import android.util.Log; | |
| 10 | +import android.view.LayoutInflater; | |
| 11 | +import android.view.View; | |
| 12 | +import android.widget.Button; | |
| 13 | +import android.widget.EditText; | |
| 14 | +import android.widget.ImageView; | |
| 15 | +import android.widget.LinearLayout; | |
| 16 | +import android.widget.RadioButton; | |
| 17 | +import android.widget.RadioGroup; | |
| 18 | +import android.widget.TextView; | |
| 19 | +import android.widget.Toast; | |
| 20 | + | |
| 21 | + | |
| 22 | +import com.ivt.android.me.R; | |
| 23 | + | |
| 24 | +import java.util.List; | |
| 25 | + | |
| 26 | +import cn.cmvideo.sdk.common.constants.ResultCode; | |
| 27 | +import cn.cmvideo.sdk.common.util.ByteUtil; | |
| 28 | +import cn.cmvideo.sdk.pay.bean.Goods; | |
| 29 | +import cn.cmvideo.sdk.pay.bean.Order; | |
| 30 | +import cn.cmvideo.sdk.pay.bean.PayInfo; | |
| 31 | +import cn.cmvideo.sdk.pay.bean.SubscribeInfo; | |
| 32 | +import cn.cmvideo.sdk.pay.bean.sales.GoodsService; | |
| 33 | +import cn.cmvideo.sdk.pay.bean.sales.Payment; | |
| 34 | +import cn.cmvideo.sdk.pay.bean.sales.QueryPriceInfo; | |
| 35 | +import cn.cmvideo.sdk.pay.handler.QueryPriceHandler; | |
| 36 | +import cn.cmvideo.sdk.pay.handler.SubscribeHandler; | |
| 37 | +import cn.cmvideo.sdk.pay.handler.ValidateHandler; | |
| 38 | + | |
| 39 | + | |
| 40 | +public class OrderDailog { | |
| 41 | + | |
| 42 | + private Context mContext; | |
| 43 | + | |
| 44 | + private String mNodeid; | |
| 45 | + | |
| 46 | + private String mContid; | |
| 47 | + | |
| 48 | + private Dialog mDialog; | |
| 49 | + | |
| 50 | + private String mTitle; | |
| 51 | + | |
| 52 | + | |
| 53 | + private static SharedPreferences isNetSP = null; | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + private RadioGroup payTypeGroup; | |
| 58 | +// private TextView name; | |
| 59 | +// private TextView price; | |
| 60 | + | |
| 61 | + private QueryPriceInfo mInfo; | |
| 62 | + | |
| 63 | + private Button subscribeBtn; | |
| 64 | + private boolean needValidateOrder = false; | |
| 65 | + | |
| 66 | + private EditText captchaEdit; | |
| 67 | + private static ImageView captchaImg; | |
| 68 | + private LinearLayout validateLayout; | |
| 69 | + static View dialogView; | |
| 70 | + private TextView name; | |
| 71 | + private TextView price; | |
| 72 | + | |
| 73 | + | |
| 74 | + public OrderDailog(Context context,QueryPriceInfo info){ | |
| 75 | + mContext=context; | |
| 76 | + mInfo = info; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public void loadDialog(){ | |
| 80 | + mDialog=new Dialog(mContext, R.style.CustomDialogStyle); | |
| 81 | + dialogView= LayoutInflater.from(mContext).inflate(R.layout.orderdialog,null); | |
| 82 | + payTypeGroup = (RadioGroup) dialogView.findViewById(R.id.payTypeGroup); | |
| 83 | + captchaEdit = (EditText) dialogView.findViewById(R.id.captchaEdit); | |
| 84 | + captchaImg = (ImageView) dialogView.findViewById(R.id.captchaImg); | |
| 85 | + name = (TextView) dialogView.findViewById(R.id.nameValTxt); | |
| 86 | + price = (TextView) dialogView.findViewById(R.id.priceValTxt); | |
| 87 | + validateLayout = (LinearLayout)dialogView.findViewById(R.id.validateLayout); | |
| 88 | + //sdk 订购按钮 | |
| 89 | + subscribeBtn = (Button) dialogView.findViewById(R.id.btn_open); | |
| 90 | + subscribeBtn.setOnClickListener(subscribeBtnClick); | |
| 91 | + | |
| 92 | + | |
| 93 | + Log.i("sdk2.0", "mNodeid=" + mNodeid + ",contid=" + mContid); | |
| 94 | + queryPrice(mInfo); | |
| 95 | + | |
| 96 | + } | |
| 97 | + | |
| 98 | + | |
| 99 | + /**移动sdk订购 */ | |
| 100 | + public static void subscribe(final Context context) { | |
| 101 | + | |
| 102 | + | |
| 103 | + if (Constant.services == null || Constant.services.size() < 1) { | |
| 104 | + Toast toast = Toast.makeText(context, "批价失败,无法订购!", | |
| 105 | + Toast.LENGTH_LONG); | |
| 106 | + toast.show(); | |
| 107 | + return; | |
| 108 | + } | |
| 109 | + | |
| 110 | + Constant.subscribeInfo = new SubscribeInfo(); | |
| 111 | + Constant.subscribeInfo.setUserId(Constant.mAccessToken.getUserId()); | |
| 112 | + Constant.subscribeInfo.setUsernum(Constant.mAccessToken.getUsernum()); | |
| 113 | + Constant.subscribeInfo.setAccessToken(Constant.mAccessToken.getToken()); | |
| 114 | + | |
| 115 | + // 从批价信息获取业务信息 | |
| 116 | + Constant.subscribeInfo.setServiceInfo(Constant.currentService.getServiceInfo()); | |
| 117 | + Constant.subscribeInfo.setProlongAuthSupport(Constant.currentService.getServiceInfo() | |
| 118 | + .isSupportProlongAuth()); | |
| 119 | + if (Constant.currentService.getServiceInfo().isAutoSubscriptionSupport() | |
| 120 | + && Constant.currentPayment.isAutoSubscriptionSupport()) { | |
| 121 | + Constant.subscribeInfo.setAutoSubscription(true); | |
| 122 | + } else { | |
| 123 | + Constant.subscribeInfo.setAutoSubscription(false); | |
| 124 | + } | |
| 125 | + | |
| 126 | + // 支付信息 | |
| 127 | + PayInfo payInfo = new PayInfo(); | |
| 128 | + payInfo.setCharge(Constant.currentPayment.getCharge()); | |
| 129 | + payInfo.setPaymentCode(Constant.currentPayment.getCode()); | |
| 130 | + if (Constant.currentPayment.getAmount() > -1) | |
| 131 | + payInfo.setAmount(Constant.currentService.getPayments().get(0).getAmount()); | |
| 132 | + else | |
| 133 | + payInfo.setAmount(Constant.currentService.getLastPrice()); | |
| 134 | + | |
| 135 | + Constant.subscribeInfo.setPayInfo(payInfo); | |
| 136 | + // 从批价信息获取MainDeliveryItem | |
| 137 | + Constant.subscribeInfo.setMainDeliveryItem(Constant.currentService.getMainDeliveryItem()); | |
| 138 | + | |
| 139 | + Goods goods = new Goods(); | |
| 140 | + goods.setId(Constant.GOODS_ID); | |
| 141 | + goods.setType(Constant.GOODS_TYPE); | |
| 142 | + goods.setResourceId(Constant.RESOURCE_ID); | |
| 143 | + goods.setName(Constant.currentService.getServiceInfo().getName()); | |
| 144 | + Constant.subscribeInfo.setGoods(goods); | |
| 145 | + | |
| 146 | + Constant.sdk.subscribe(context, Constant.subscribeInfo, new SubscribeHandler() { | |
| 147 | + | |
| 148 | + @Override | |
| 149 | + public void onResult(String resultCode, String resultDesc, | |
| 150 | + String externalOrderId, Order order, String validId, | |
| 151 | + String imageHexStream) { | |
| 152 | + | |
| 153 | + String str = String.format( | |
| 154 | + "resultCode=%s, resultDesc=%s, validId=%s", resultCode, | |
| 155 | + resultDesc, validId); | |
| 156 | + Log.i("sdk2.0","str="+ str ); | |
| 157 | + if (ResultCode.ACCEPTED.name().equals(resultCode) | |
| 158 | + && order != null) { | |
| 159 | + Toast toast = Toast.makeText(context, "订购状态=" | |
| 160 | + + order.getStatus(), Toast.LENGTH_LONG); | |
| 161 | + toast.show(); | |
| 162 | + // 鉴权 | |
| 163 | + CmSdkUtil.serviceAuth(context); | |
| 164 | + } else if (ResultCode.NEED_VALIDATE_ORDER.name().equals( | |
| 165 | + resultCode)) { | |
| 166 | + Constant.validId = validId; | |
| 167 | + | |
| 168 | + if (!TextUtils.isEmpty(imageHexStream)) { | |
| 169 | + byte[] imageStream = ByteUtil.hex2byte(imageHexStream); | |
| 170 | + Bitmap bitmap = bytes2Bimap(imageStream); | |
| 171 | + captchaImg.setImageBitmap(bitmap); | |
| 172 | + } | |
| 173 | + | |
| 174 | + LinearLayout layout = (LinearLayout) dialogView.findViewById(R.id.validateLayout); | |
| 175 | + layout.setVisibility(LinearLayout.VISIBLE);//H | |
| 176 | + Constant.needValidateOrder = true; | |
| 177 | + } else { | |
| 178 | + Log.i("sdk2.0","订购失败"+str); | |
| 179 | + Toast toast = Toast.makeText(context, str, | |
| 180 | + Toast.LENGTH_LONG); | |
| 181 | + toast.show(); | |
| 182 | + } | |
| 183 | + } | |
| 184 | + }); | |
| 185 | + | |
| 186 | + } | |
| 187 | + | |
| 188 | + public static Bitmap bytes2Bimap(byte[] b) { | |
| 189 | + if (b.length != 0) { | |
| 190 | + return BitmapFactory.decodeByteArray(b, 0, b.length); | |
| 191 | + } else { | |
| 192 | + return null; | |
| 193 | + } | |
| 194 | + } | |
| 195 | + | |
| 196 | + | |
| 197 | + View.OnClickListener subscribeBtnClick = new View.OnClickListener() {//sdk 订购按钮 | |
| 198 | + | |
| 199 | + public void onClick(View v) { | |
| 200 | + | |
| 201 | + if (!Constant.needValidateOrder) { | |
| 202 | + Log.i("sdk2.0","点击支付按钮 触发进入订购流程 "); | |
| 203 | + subscribe(mContext); | |
| 204 | + mDialog.dismiss(); | |
| 205 | + } else { | |
| 206 | + Log.i("sdk2.0","点击支付按钮 触发进入验证码流程 "); | |
| 207 | + String validCode = captchaEdit.getText().toString(); | |
| 208 | + Constant.sdk.validate(v.getContext(), Constant.mAccessToken.getUserId(), | |
| 209 | + Constant.mAccessToken.getToken(), Constant.validId, validCode, | |
| 210 | + validateHandler); | |
| 211 | + } | |
| 212 | + } | |
| 213 | + }; | |
| 214 | + | |
| 215 | + ValidateHandler validateHandler = new ValidateHandler() { | |
| 216 | + | |
| 217 | + @Override | |
| 218 | + public void onResult(String resultCode, String resultDesc, | |
| 219 | + String externalOrderId, Order order) { | |
| 220 | + | |
| 221 | + if (ResultCode.ACCEPTED.name().equals(resultCode) && order != null) { | |
| 222 | + CmSdkUtil.serviceAuth(mContext); | |
| 223 | + } else { | |
| 224 | + String str = String.format("resultCode=%s, resultDesc=%s", | |
| 225 | + resultCode, resultDesc); | |
| 226 | + Toast toast = Toast.makeText(mContext, str, | |
| 227 | + Toast.LENGTH_LONG); | |
| 228 | + toast.show(); | |
| 229 | + } | |
| 230 | + | |
| 231 | + needValidateOrder = false; | |
| 232 | + captchaEdit.setText(""); | |
| 233 | + validateLayout.setVisibility(LinearLayout.INVISIBLE);//H | |
| 234 | + } | |
| 235 | + | |
| 236 | + }; | |
| 237 | + | |
| 238 | + /**批价*/ | |
| 239 | + private void queryPrice(QueryPriceInfo info) { | |
| 240 | + Constant.sdk.querySalesPrice(mContext, info, new QueryPriceHandler() { | |
| 241 | + | |
| 242 | + @Override | |
| 243 | + public void onResult(String resultCode, String resultDesc, | |
| 244 | + List<GoodsService> services) { | |
| 245 | + | |
| 246 | + String str = String.format("resultCode=%s, resultDesc=%s", | |
| 247 | + resultCode, resultDesc); | |
| 248 | + Log.i("sdk2.0", str); | |
| 249 | + | |
| 250 | + if (ResultCode.ACCEPTED.name().equals(resultCode)) { | |
| 251 | + Constant.services = services; | |
| 252 | + | |
| 253 | + if (services != null && services.size() > 0) { | |
| 254 | + int idx = 0; | |
| 255 | + for (GoodsService service : services) { | |
| 256 | + for (Payment payment : service.getPayments()) { | |
| 257 | + RadioButton radio = new RadioButton(mContext); | |
| 258 | + if (idx == 0) { | |
| 259 | + radio.setChecked(true); | |
| 260 | + Constant.currentService = service; | |
| 261 | + Constant.currentPayment = payment; | |
| 262 | + } | |
| 263 | + radio.setId(idx); | |
| 264 | + Log.i("sdk2.0", "支付方法:" + payment.getName()); | |
| 265 | + radio.setText(payment.getName()); | |
| 266 | + radio.setTextColor(mContext.getResources().getColor(R.color.viewfinder_frame)); | |
| 267 | + radio.setOnClickListener(radioBtnClick); | |
| 268 | + payTypeGroup.addView(radio); | |
| 269 | + idx++; | |
| 270 | + } | |
| 271 | + } | |
| 272 | + | |
| 273 | + name.setText(services.get(0).getServiceInfo().getName()); | |
| 274 | + price.setText(String.format( | |
| 275 | + "%.2f", | |
| 276 | + Double.parseDouble(services.get(0) | |
| 277 | + .getPayments().get(0).getAmount() | |
| 278 | + + "") / 100)); | |
| 279 | + mDialog.setContentView(dialogView); | |
| 280 | + mDialog.show(); | |
| 281 | + } | |
| 282 | + } else { | |
| 283 | + Toast toast = Toast.makeText(mContext, str, | |
| 284 | + Toast.LENGTH_LONG); | |
| 285 | + toast.show(); | |
| 286 | + } | |
| 287 | + | |
| 288 | + } | |
| 289 | + }); | |
| 290 | + } | |
| 291 | + | |
| 292 | + View.OnClickListener radioBtnClick = new View.OnClickListener() { | |
| 293 | + public void onClick(View v) { onRadioButtonClicked(v); } | |
| 294 | + }; | |
| 295 | + | |
| 296 | + public void onRadioButtonClicked(View view) { | |
| 297 | + boolean isSet = false; | |
| 298 | + boolean checked = ((RadioButton) view).isChecked(); | |
| 299 | + if (checked) { | |
| 300 | + Constant.index = view.getId(); | |
| 301 | + if (Constant.services != null && Constant.services.size() > 0) { | |
| 302 | + int idx = 0; | |
| 303 | + for (GoodsService service : Constant.services) { | |
| 304 | + for (Payment payment: service.getPayments()) { | |
| 305 | + if(idx == Constant.index){ | |
| 306 | + Constant.currentService = service; | |
| 307 | + Constant.currentPayment = payment; | |
| 308 | + | |
| 309 | + name.setText(service.getServiceInfo().getName()); | |
| 310 | + price.setText(String.format( | |
| 311 | + "%.2f", | |
| 312 | + Double.parseDouble(payment.getAmount() | |
| 313 | + + "") / 100)); | |
| 314 | + isSet = true; | |
| 315 | + break; | |
| 316 | + }else{ | |
| 317 | + idx++; | |
| 318 | + } | |
| 319 | + } | |
| 320 | + | |
| 321 | + if(isSet){break;} | |
| 322 | + } | |
| 323 | + } | |
| 324 | + } | |
| 325 | + } | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | +} | ... | ... |
.svn/pristine/07/07d14bd02a0980033aafaacd680de588a4439ecb.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/07/07d14bd02a0980033aafaacd680de588a4439ecb.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + xmlns:tools="http://schemas.android.com/tools" | |
| 4 | + android:id="@+id/program_layout" | |
| 5 | + android:layout_width="match_parent" | |
| 6 | + android:layout_height="match_parent"> | |
| 7 | + | |
| 8 | + | |
| 9 | + <com.ivt.plus.vitamio.CNMediaPlayer | |
| 10 | + android:id="@+id/player" | |
| 11 | + android:layout_width="match_parent" | |
| 12 | + android:layout_height="180dp" | |
| 13 | + android:background="@android:color/black" /> | |
| 14 | + | |
| 15 | + <RelativeLayout | |
| 16 | + android:id="@+id/other" | |
| 17 | + android:layout_width="match_parent" | |
| 18 | + android:layout_height="match_parent" | |
| 19 | + android:layout_below="@+id/player"> | |
| 20 | + | |
| 21 | + <RelativeLayout | |
| 22 | + android:id="@+id/container_part" | |
| 23 | + android:layout_width="match_parent" | |
| 24 | + android:layout_height="match_parent" | |
| 25 | + android:layout_marginBottom="48dp" | |
| 26 | + android:background="@color/config_background_color"> | |
| 27 | + | |
| 28 | + <LinearLayout | |
| 29 | + android:id="@+id/container_part_top" | |
| 30 | + android:layout_width="match_parent" | |
| 31 | + android:layout_height="37dp" | |
| 32 | + android:background="@color/TextColorWhite" | |
| 33 | + android:orientation="horizontal"> | |
| 34 | + | |
| 35 | + <com.ivt.plus.indicator.TabPageIndicator | |
| 36 | + android:id="@+id/indicator" | |
| 37 | + android:layout_width="match_parent" | |
| 38 | + android:layout_height="37dp" | |
| 39 | + android:layout_weight="1" /> | |
| 40 | + | |
| 41 | + <ImageButton | |
| 42 | + android:id="@+id/btn_fullscreen" | |
| 43 | + style="@style/fullscreen_style" | |
| 44 | + android:visibility="gone" /> | |
| 45 | + </LinearLayout> | |
| 46 | + | |
| 47 | + <android.support.v4.view.ViewPager | |
| 48 | + android:id="@+id/viewpager" | |
| 49 | + android:layout_width="match_parent" | |
| 50 | + android:layout_height="match_parent" | |
| 51 | + android:layout_below="@+id/container_part_top" /> | |
| 52 | + | |
| 53 | + <ListView | |
| 54 | + android:id="@+id/active_view" | |
| 55 | + android:layout_width="48dp" | |
| 56 | + android:layout_height="wrap_content" | |
| 57 | + android:layout_alignParentRight="true" | |
| 58 | + android:layout_below="@+id/container_part_top" | |
| 59 | + android:layout_marginBottom="12dp" | |
| 60 | + android:layout_marginTop="42dp" | |
| 61 | + android:cacheColorHint="#00000000" | |
| 62 | + android:divider="@null" | |
| 63 | + android:fadingEdge="none" | |
| 64 | + android:listSelector="#00000000" | |
| 65 | + android:scrollbars="none" | |
| 66 | + android:visibility="gone" /> | |
| 67 | + | |
| 68 | + </RelativeLayout> | |
| 69 | + | |
| 70 | + <LinearLayout | |
| 71 | + android:id="@+id/foot" | |
| 72 | + android:layout_width="match_parent" | |
| 73 | + android:layout_height="wrap_content" | |
| 74 | + android:layout_alignParentBottom="true" | |
| 75 | + android:orientation="vertical" | |
| 76 | + android:visibility="gone"> | |
| 77 | + | |
| 78 | + <include | |
| 79 | + android:id="@+id/footer_layout" | |
| 80 | + layout="@layout/footer" /> | |
| 81 | + | |
| 82 | + <LinearLayout | |
| 83 | + android:id="@+id/footer_for_emoticons" | |
| 84 | + android:layout_width="match_parent" | |
| 85 | + android:layout_height="@dimen/keyboard_height" | |
| 86 | + android:background="@android:color/transparent" | |
| 87 | + android:orientation="horizontal" | |
| 88 | + android:visibility="gone" /> | |
| 89 | + | |
| 90 | + </LinearLayout> | |
| 91 | + | |
| 92 | + <LinearLayout | |
| 93 | + android:id="@+id/tab_part" | |
| 94 | + android:layout_width="match_parent" | |
| 95 | + android:layout_height="48dp" | |
| 96 | + android:layout_alignParentBottom="true" | |
| 97 | + android:background="@color/main_tab_background_color" | |
| 98 | + android:baselineAligned="false" | |
| 99 | + android:orientation="horizontal"> | |
| 100 | + | |
| 101 | + <LinearLayout | |
| 102 | + android:id="@+id/detail_share" | |
| 103 | + android:layout_width="match_parent" | |
| 104 | + android:layout_height="wrap_content" | |
| 105 | + android:layout_gravity="center" | |
| 106 | + android:layout_weight="1" | |
| 107 | + android:gravity="center" | |
| 108 | + android:orientation="vertical" | |
| 109 | + android:padding="2dp"> | |
| 110 | + | |
| 111 | + <ImageView | |
| 112 | + android:id="@+id/tabImg" | |
| 113 | + android:layout_width="30dp" | |
| 114 | + android:layout_height="30dp" | |
| 115 | + android:layout_gravity="center_horizontal" | |
| 116 | + android:contentDescription="@null" | |
| 117 | + android:src="@drawable/btn_detail_share" /> | |
| 118 | + | |
| 119 | + <TextView | |
| 120 | + android:id="@+id/tabText" | |
| 121 | + android:layout_width="wrap_content" | |
| 122 | + android:layout_height="wrap_content" | |
| 123 | + android:focusable="true" | |
| 124 | + android:gravity="center" | |
| 125 | + android:text="分享" | |
| 126 | + android:textAlignment="center" | |
| 127 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 128 | + android:textSize="12sp" | |
| 129 | + tools:ignore="UnusedAttribute" /> | |
| 130 | + </LinearLayout> | |
| 131 | + | |
| 132 | + <LinearLayout | |
| 133 | + android:id="@+id/detail_collect" | |
| 134 | + android:layout_width="match_parent" | |
| 135 | + android:layout_height="wrap_content" | |
| 136 | + android:layout_weight="1" | |
| 137 | + android:gravity="center" | |
| 138 | + android:orientation="vertical" | |
| 139 | + android:padding="2dp"> | |
| 140 | + | |
| 141 | + <ImageView | |
| 142 | + android:id="@+id/detail_collect_img" | |
| 143 | + android:layout_width="30dp" | |
| 144 | + android:layout_height="30dp" | |
| 145 | + android:layout_gravity="center_horizontal" | |
| 146 | + android:contentDescription="@null" | |
| 147 | + android:src="@drawable/btn_detail_collect" /> | |
| 148 | + | |
| 149 | + <TextView | |
| 150 | + android:layout_width="wrap_content" | |
| 151 | + android:layout_height="wrap_content" | |
| 152 | + android:focusable="true" | |
| 153 | + android:gravity="center" | |
| 154 | + android:text="收藏" | |
| 155 | + android:textAlignment="center" | |
| 156 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 157 | + android:textSize="12sp" | |
| 158 | + tools:ignore="UnusedAttribute" /> | |
| 159 | + </LinearLayout> | |
| 160 | + | |
| 161 | + <LinearLayout | |
| 162 | + android:id="@+id/detail_download" | |
| 163 | + android:layout_width="match_parent" | |
| 164 | + android:layout_height="wrap_content" | |
| 165 | + android:layout_gravity="center" | |
| 166 | + android:layout_weight="1" | |
| 167 | + android:gravity="center" | |
| 168 | + android:orientation="vertical" | |
| 169 | + android:padding="2dp" | |
| 170 | + android:visibility="gone"> | |
| 171 | + | |
| 172 | + <ImageView | |
| 173 | + android:layout_width="30dp" | |
| 174 | + android:layout_height="30dp" | |
| 175 | + android:layout_gravity="center_horizontal" | |
| 176 | + android:contentDescription="@null" | |
| 177 | + android:src="@drawable/btn_detail_download" /> | |
| 178 | + | |
| 179 | + <TextView | |
| 180 | + android:layout_width="wrap_content" | |
| 181 | + android:layout_height="wrap_content" | |
| 182 | + android:focusable="true" | |
| 183 | + android:gravity="center" | |
| 184 | + android:text="下载" | |
| 185 | + android:textAlignment="center" | |
| 186 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 187 | + android:textSize="12sp" | |
| 188 | + tools:ignore="UnusedAttribute" /> | |
| 189 | + </LinearLayout> | |
| 190 | + | |
| 191 | + <LinearLayout | |
| 192 | + android:id="@+id/detail_barcode" | |
| 193 | + android:layout_width="match_parent" | |
| 194 | + android:layout_height="wrap_content" | |
| 195 | + android:layout_gravity="center" | |
| 196 | + android:layout_weight="1" | |
| 197 | + android:gravity="center" | |
| 198 | + android:orientation="vertical" | |
| 199 | + android:padding="2dp"> | |
| 200 | + | |
| 201 | + <ImageView | |
| 202 | + android:layout_width="30dp" | |
| 203 | + android:layout_height="30dp" | |
| 204 | + android:layout_gravity="center_horizontal" | |
| 205 | + android:contentDescription="@null" | |
| 206 | + android:src="@drawable/btn_detail_barcode" /> | |
| 207 | + | |
| 208 | + <TextView | |
| 209 | + android:layout_width="wrap_content" | |
| 210 | + android:layout_height="wrap_content" | |
| 211 | + android:focusable="true" | |
| 212 | + android:gravity="center" | |
| 213 | + android:text="二维码" | |
| 214 | + android:textAlignment="center" | |
| 215 | + android:textColor="@drawable/tabitem_txt_sel" | |
| 216 | + android:textSize="12sp" | |
| 217 | + tools:ignore="UnusedAttribute" /> | |
| 218 | + </LinearLayout> | |
| 219 | + </LinearLayout> | |
| 220 | + | |
| 221 | + </RelativeLayout> | |
| 222 | + | |
| 223 | +</RelativeLayout> | |
| 0 | 224 | \ No newline at end of file | ... | ... |
.svn/pristine/07/07fd9207d533a448c927084fa00a6bf87bfd9bd8.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/07/07fd9207d533a448c927084fa00a6bf87bfd9bd8.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | + | |
| 4 | +<!--?xml version=1.0 encoding=utf-8?--> | |
| 5 | +<shape xmlns:android="http://schemas.android.com/apk/res/android" | |
| 6 | + android:shape="rectangle"> | |
| 7 | + | |
| 8 | + | |
| 9 | + <solid android:color="#B2000000" /> | |
| 10 | + <stroke | |
| 11 | + android:width="1dp" | |
| 12 | + android:color="#B2000000" | |
| 13 | + android:dashWidth="1dp" | |
| 14 | + android:dashGap="0dp" /> | |
| 15 | + <padding | |
| 16 | + android:left="10dp" | |
| 17 | + android:right="10dp" /> | |
| 18 | + <corners android:radius="60px" /> | |
| 19 | +</shape> | |
| 0 | 20 | \ No newline at end of file | ... | ... |
.svn/pristine/08/0800d8268995c08b5464fc99a398fb4df98e05ad.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/08/0800d8268995c08b5464fc99a398fb4df98e05ad.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 3 | + <alpha | |
| 4 | + android:duration="1000" | |
| 5 | + android:fromAlpha="1" | |
| 6 | + android:toAlpha="0" | |
| 7 | + /> | |
| 8 | + | |
| 9 | +</set> | ... | ... |
.svn/pristine/08/080c130d434ca50e29b4d74ebf4259d09d7ab4a1.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/08/080c130d434ca50e29b4d74ebf4259d09d7ab4a1.svn-base | |
| 1 | +//package com.ivt.android.me.ui.activity.pay; | |
| 2 | +// | |
| 3 | +//import android.content.Context; | |
| 4 | +//import android.content.Intent; | |
| 5 | +//import android.support.v7.app.AppCompatActivity; | |
| 6 | +//import android.os.Bundle; | |
| 7 | +//import android.util.Log; | |
| 8 | +//import android.util.Printer; | |
| 9 | +//import android.view.LayoutInflater; | |
| 10 | +//import android.view.View; | |
| 11 | +//import android.view.ViewGroup; | |
| 12 | +//import android.widget.AdapterView; | |
| 13 | +//import android.widget.BaseAdapter; | |
| 14 | +//import android.widget.ImageView; | |
| 15 | +//import android.widget.ListView; | |
| 16 | +//import android.widget.TextView; | |
| 17 | +// | |
| 18 | +//import com.ivt.android.me.R; | |
| 19 | +//import com.ivt.android.me.bean.hall.UserLiveEntity; | |
| 20 | +//import com.ivt.android.me.utils.bitmap.PicassoUtils; | |
| 21 | +// | |
| 22 | +//import java.util.ArrayList; | |
| 23 | +//import java.util.List; | |
| 24 | +// | |
| 25 | +//public class YuLeActivity extends AppCompatActivity { | |
| 26 | +// | |
| 27 | +//private ListView lv; | |
| 28 | +// private YuLeAdapter adapter; | |
| 29 | +// private List<Banner> banners; | |
| 30 | +// @Override | |
| 31 | +// protected void onCreate(Bundle savedInstanceState) { | |
| 32 | +// super.onCreate(savedInstanceState); | |
| 33 | +// setContentView(R.layout.activity_yule); | |
| 34 | +// lv = (ListView) findViewById(R.id.yule_lv); | |
| 35 | +// lv.setOnItemClickListener(new AdapterView.OnItemClickListener() { | |
| 36 | +// @Override | |
| 37 | +// public void onItemClick(AdapterView<?> parent, View view, int position, long id) { | |
| 38 | +// Banner b=banners.get(position); | |
| 39 | +// movie_grid_item(b.getContId(),b.getNodeId(),b.getLink(),b.getTitle(),b.getImage()); | |
| 40 | +// } | |
| 41 | +// }); | |
| 42 | +// initView(); | |
| 43 | +// loadData(); | |
| 44 | +// } | |
| 45 | +// | |
| 46 | +// private void movie_grid_item(String contId,String nodeId, String trackerPath,String title,String img) { | |
| 47 | +// Log.d("my_log", "home frag go to detail"); | |
| 48 | +// Log.e("my_log", "首页banner图传值到播放页 nodeId="+nodeId+",contId="+contId); | |
| 49 | +// Intent intent = new Intent(YuLeActivity.this, DetailActivity.class); | |
| 50 | +// intent.putExtra("contId", contId); | |
| 51 | +// intent.putExtra("nodeId", nodeId); | |
| 52 | +// intent.putExtra("title", title); | |
| 53 | +// intent.putExtra("img", img); | |
| 54 | +// intent.putExtra("trackerPath", trackerPath); | |
| 55 | +// startActivity(intent); | |
| 56 | +// } | |
| 57 | +// private void loadData() { | |
| 58 | +// lv.setAdapter(adapter = adapter == null ? new YuLeAdapter() : adapter); | |
| 59 | +// } | |
| 60 | +// | |
| 61 | +// private void initView() { | |
| 62 | +// | |
| 63 | +// banners=new ArrayList<Banner>(); | |
| 64 | +// Banner b1=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FUHJ8U.jpg", "621436845", "10288603", "怒了!胡彦斌发文斥黑粉掐架", "","movie"); | |
| 65 | +// Banner b2=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FU2H5J.jpg", "621436832", "10288603", "傅园慧见习大大又贡献表情包", "","movie"); | |
| 66 | +// Banner b3=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FUFH2G.jpg", "621436796", "10288603", "李易峰周冬雨新剧上演师生恋", "","movie"); | |
| 67 | +// Banner b4=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FUNEFS.jpg", "621436804", "10288603", "马思纯新剧演最具撩力女将军", "","movie"); | |
| 68 | +// Banner b5=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FUO0VA.jpg", "621436780", "10288603", "萧亚轩十指紧扣神秘男游曼谷", "","movie"); | |
| 69 | +// Banner b6=new Banner("http://wx.wodpy.com:8081/dms-basic/baseImg/getFile.html?file=/images/upload/4ER156FUE2L6.jpg", "621436776", "10288603", "黄磊小女儿露吃货本性糊一脸", "","movie"); | |
| 70 | +// banners.add(b1); | |
| 71 | +// banners.add(b2); | |
| 72 | +// banners.add(b3); | |
| 73 | +// banners.add(b4); | |
| 74 | +// banners.add(b5); | |
| 75 | +// banners.add(b6); | |
| 76 | +// adapter=new YuLeAdapter(); | |
| 77 | +// adapter.addData(banners); | |
| 78 | +// } | |
| 79 | +// | |
| 80 | +// public class YuLeAdapter extends BaseAdapter{ | |
| 81 | +// private LayoutInflater inflater; | |
| 82 | +// private List<Banner> list; | |
| 83 | +// | |
| 84 | +// public YuLeAdapter( ) { | |
| 85 | +// super(); | |
| 86 | +// list = new ArrayList<Banner>(); | |
| 87 | +// inflater = LayoutInflater.from(YuLeActivity.this); | |
| 88 | +// | |
| 89 | +// } | |
| 90 | +// | |
| 91 | +// @Override | |
| 92 | +// public int getCount() { | |
| 93 | +// return list == null ? 0 : list.size(); | |
| 94 | +// } | |
| 95 | +// | |
| 96 | +// @Override | |
| 97 | +// public Object getItem(int position) { | |
| 98 | +// return list.get(position); | |
| 99 | +// } | |
| 100 | +// | |
| 101 | +// @Override | |
| 102 | +// public long getItemId(int position) { | |
| 103 | +// return position; | |
| 104 | +// } | |
| 105 | +// | |
| 106 | +// @Override | |
| 107 | +// public View getView(int position, View convertView, ViewGroup parent) { | |
| 108 | +// ViewHolder holder; | |
| 109 | +// if (convertView == null) { | |
| 110 | +// holder = new ViewHolder(); | |
| 111 | +// convertView = inflater.inflate(R.layout.list_item_home, null); | |
| 112 | +// holder.my_livehead = (ImageView) convertView .findViewById(R.id.icon); | |
| 113 | +// holder.tv = (TextView) convertView .findViewById(R.id.title); | |
| 114 | +// | |
| 115 | +// convertView.setTag(holder); | |
| 116 | +// } else { | |
| 117 | +// holder = (ViewHolder) convertView.getTag(); | |
| 118 | +// } | |
| 119 | +// Banner b = list.get(position); | |
| 120 | +// PicassoUtils.displayImage(b.getImage(), holder.my_livehead, 0); | |
| 121 | +// holder.tv.setText(b.getTitle()); | |
| 122 | +// return convertView; | |
| 123 | +// } | |
| 124 | +// | |
| 125 | +// class ViewHolder { | |
| 126 | +// ImageView my_livehead; | |
| 127 | +// TextView tv; | |
| 128 | +// } | |
| 129 | +// | |
| 130 | +// public void addData(List<Banner> mList) { | |
| 131 | +// this.list.clear(); | |
| 132 | +// this.list.addAll(mList); | |
| 133 | +// notifyDataSetChanged(); | |
| 134 | +// } | |
| 135 | +// public void clear() { | |
| 136 | +// if (this.list != null) { | |
| 137 | +// this.list.clear(); | |
| 138 | +// notifyDataSetChanged(); | |
| 139 | +// } | |
| 140 | +// }} | |
| 141 | +//} | ... | ... |
.svn/pristine/08/080ce7ff6c56ff55a78c01e67b4f99524ad82350.svn-base
0 → 100644
No preview for this file type
.svn/pristine/08/081d59212cfabd505e355470b82cbe74157470f2.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/08/081d59212cfabd505e355470b82cbe74157470f2.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 上午10:46:20 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.model.mine; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +import android.content.Context; | |
| 10 | +import android.os.Handler; | |
| 11 | +import android.os.Message; | |
| 12 | + | |
| 13 | +import com.ivt.android.me.R; | |
| 14 | +import com.ivt.android.me.api.LiveApiBean; | |
| 15 | +import com.ivt.android.me.api.UserApiBean; | |
| 16 | +import com.ivt.android.me.bean.BackListBean; | |
| 17 | +import com.ivt.android.me.bean.MyFollowerBean; | |
| 18 | +import com.ivt.android.me.bean.UserBean; | |
| 19 | +import com.ivt.android.me.bean.UserEntity; | |
| 20 | +import com.ivt.android.me.constant.BaseInfo; | |
| 21 | +import com.ivt.android.me.listener.Dia2AcListener; | |
| 22 | +import com.ivt.android.me.ui.dialog.BackUserDialog; | |
| 23 | +import com.ivt.android.me.utils.httputil.HttpUtils; | |
| 24 | +import com.ivt.android.me.utils.httputil.HttpUtils.HttpCallback; | |
| 25 | +import com.ivt.android.me.utils.httputil.JsonUtils; | |
| 26 | +import com.ivt.android.me.utils.publics.ComparatorUtils; | |
| 27 | + | |
| 28 | +public class ModleUserHome implements IAUserHome, Dia2AcListener { | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * 获取贡献榜前三名 | |
| 32 | + */ | |
| 33 | + private final int GETGIFTLIST = 4; | |
| 34 | + /** | |
| 35 | + * 获取用户信息 | |
| 36 | + */ | |
| 37 | + private final int GETNETUSERINFO = 1; | |
| 38 | + // /** | |
| 39 | + // * 获取直播 | |
| 40 | + // */ | |
| 41 | + // private final int GETLIVES = 2; | |
| 42 | + /** | |
| 43 | + * 获取是否为黑名单 | |
| 44 | + */ | |
| 45 | + private final int GETISBLACKUSER = 3; | |
| 46 | + /** | |
| 47 | + * 添加黑名单成功 | |
| 48 | + */ | |
| 49 | + private final int ADDBLACKSUCCESS = 6; | |
| 50 | + /** | |
| 51 | + * 添加黑名单失败 | |
| 52 | + */ | |
| 53 | + private final int ADDBLACKFAIL = 7; | |
| 54 | + /** | |
| 55 | + * 取消黑名单成功 | |
| 56 | + */ | |
| 57 | + private final int DELEBLACKSUCCESS = 8; | |
| 58 | + /** | |
| 59 | + * 取消黑名单失败 | |
| 60 | + */ | |
| 61 | + private final int DELEBLACKKFAIL = 9; | |
| 62 | + /** | |
| 63 | + * 设置基本信息 | |
| 64 | + */ | |
| 65 | + private final int GETUSERBASEINFO = 0; | |
| 66 | + /** | |
| 67 | + * 联网失败 | |
| 68 | + */ | |
| 69 | + private final int NETERRO = -1000; | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * 开始联网 | |
| 73 | + */ | |
| 74 | + private final int STARTNET = 1000; | |
| 75 | + | |
| 76 | + private Context context; | |
| 77 | + private Handler h; | |
| 78 | + private String Userid; | |
| 79 | + private List<UserEntity> mypricelist; | |
| 80 | + private int blackid = -1; | |
| 81 | + | |
| 82 | + /** | |
| 83 | + * | |
| 84 | + */ | |
| 85 | + public ModleUserHome(Context context, Handler h, String userid) { | |
| 86 | + // TODO Auto-generated constructor stub | |
| 87 | + this.h = h; | |
| 88 | + this.context = context; | |
| 89 | + this.Userid = userid; | |
| 90 | + } | |
| 91 | + | |
| 92 | + @Override | |
| 93 | + public void SetBaseInfo(UserEntity user) { | |
| 94 | + // TODO Auto-generated method stub | |
| 95 | + h.sendEmptyMessage(GETUSERBASEINFO); | |
| 96 | + } | |
| 97 | + | |
| 98 | + @Override | |
| 99 | + public void SetOtherInfo() { | |
| 100 | + // TODO Auto-generated method stub | |
| 101 | + String url = UserApiBean.requestUserInfo(BaseInfo.UserId, | |
| 102 | + BaseInfo.Captcha, Userid); | |
| 103 | + HttpUtils.get(url, new HttpCallback() { | |
| 104 | + @Override | |
| 105 | + public void onSuccess(String data) { | |
| 106 | + // TODO Auto-generated method stub | |
| 107 | + UserBean bean = JsonUtils.deserialize(data, UserBean.class); | |
| 108 | + if (0 == bean.getCode()) { | |
| 109 | + UserEntity user = bean.getData(); | |
| 110 | + Message m = new Message(); | |
| 111 | + m.obj = user; | |
| 112 | + m.what = GETNETUSERINFO; | |
| 113 | + h.sendMessage(m); | |
| 114 | + } | |
| 115 | + } | |
| 116 | + }); | |
| 117 | + | |
| 118 | + } | |
| 119 | + | |
| 120 | + @Override | |
| 121 | + public void SetUserLives() { | |
| 122 | + // TODO Auto-generated method stub | |
| 123 | + } | |
| 124 | + | |
| 125 | + @Override | |
| 126 | + public void AddAttent() { | |
| 127 | + // TODO Auto-generated method stub | |
| 128 | + | |
| 129 | + } | |
| 130 | + | |
| 131 | + @Override | |
| 132 | + public void IsBlack() { | |
| 133 | + // TODO Auto-generated method stub | |
| 134 | + // 请求的路径 | |
| 135 | + String requestUrl = LiveApiBean.checkBlacklist(BaseInfo.UserId, Userid); | |
| 136 | + final Message m = new Message(); | |
| 137 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 138 | + | |
| 139 | + @Override | |
| 140 | + public void onStart() { | |
| 141 | + // TODO Auto-generated method stub | |
| 142 | + super.onStart(); | |
| 143 | + h.sendEmptyMessage(STARTNET); | |
| 144 | + | |
| 145 | + } | |
| 146 | + | |
| 147 | + @Override | |
| 148 | + public void onSuccess(String data) { | |
| 149 | + // TODO Auto-generated method stub | |
| 150 | + BackListBean bean = JsonUtils.deserialize(data, | |
| 151 | + BackListBean.class); | |
| 152 | + int code = bean.getCode(); | |
| 153 | + if (code == 0) { | |
| 154 | + // 这是已经拉黑了 | |
| 155 | + blackid = bean.getId(); | |
| 156 | + m.obj = true; | |
| 157 | + } else { | |
| 158 | + // 这是没有拉黑 | |
| 159 | + m.obj = false; | |
| 160 | + } | |
| 161 | + m.what = GETISBLACKUSER; | |
| 162 | + h.sendMessage(m); | |
| 163 | + } | |
| 164 | + | |
| 165 | + @Override | |
| 166 | + public void onError(String msg) { | |
| 167 | + // TODO Auto-generated method stub | |
| 168 | + super.onError(msg); | |
| 169 | + m.obj = false; | |
| 170 | + m.what = NETERRO; | |
| 171 | + h.sendMessage(m); | |
| 172 | + // 获取拉黑失败 | |
| 173 | + } | |
| 174 | + }); | |
| 175 | + | |
| 176 | + } | |
| 177 | + | |
| 178 | + @Override | |
| 179 | + public void AddBlack() { | |
| 180 | + // TODO Auto-generated method stub | |
| 181 | + // 请求的路径 | |
| 182 | + String requestUrl = LiveApiBean.addBlacklist(BaseInfo.UserId, Userid); | |
| 183 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 184 | + | |
| 185 | + @Override | |
| 186 | + public void onStart() { | |
| 187 | + // TODO Auto-generated method stub | |
| 188 | + super.onStart(); | |
| 189 | + h.sendEmptyMessage(STARTNET); | |
| 190 | + } | |
| 191 | + | |
| 192 | + @Override | |
| 193 | + public void onSuccess(String data) { | |
| 194 | + // TODO Auto-generated method stub | |
| 195 | + BackListBean bean = JsonUtils.deserialize(data, | |
| 196 | + BackListBean.class); | |
| 197 | + int code = bean.getCode(); | |
| 198 | + if (code == 0) { | |
| 199 | + // 添加拉黑成功 | |
| 200 | + blackid = bean.getBlacklistId(); | |
| 201 | + h.sendEmptyMessage(ADDBLACKSUCCESS); | |
| 202 | + } else { | |
| 203 | + // 这是拉黑失败 | |
| 204 | + h.sendEmptyMessage(ADDBLACKFAIL); | |
| 205 | + } | |
| 206 | + | |
| 207 | + } | |
| 208 | + | |
| 209 | + @Override | |
| 210 | + public void onError(String msg) { | |
| 211 | + // TODO Auto-generated method stub | |
| 212 | + super.onError(msg); | |
| 213 | + // 这是拉黑失败 | |
| 214 | + h.sendEmptyMessage(NETERRO); | |
| 215 | + } | |
| 216 | + }); | |
| 217 | + } | |
| 218 | + | |
| 219 | + @Override | |
| 220 | + public void DeleBlack() { | |
| 221 | + // TODO Auto-generated method stub | |
| 222 | + String requestUrl = LiveApiBean.cancleBlacklist(blackid + ""); | |
| 223 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 224 | + @Override | |
| 225 | + public void onStart() { | |
| 226 | + // TODO Auto-generated method stub | |
| 227 | + super.onStart(); | |
| 228 | + h.sendEmptyMessage(STARTNET); | |
| 229 | + } | |
| 230 | + | |
| 231 | + @Override | |
| 232 | + public void onSuccess(String data) { | |
| 233 | + // TODO Auto-generated method stub | |
| 234 | + BackListBean bean = JsonUtils.deserialize(data, | |
| 235 | + BackListBean.class); | |
| 236 | + int code = bean.getCode(); | |
| 237 | + if (code == 0) { | |
| 238 | + h.sendEmptyMessage(DELEBLACKSUCCESS); | |
| 239 | + // 取消成功 | |
| 240 | + } else { | |
| 241 | + h.sendEmptyMessage(DELEBLACKKFAIL); | |
| 242 | + // 取消失败 | |
| 243 | + } | |
| 244 | + | |
| 245 | + } | |
| 246 | + | |
| 247 | + @Override | |
| 248 | + public void onError(String msg) { | |
| 249 | + // TODO Auto-generated method stub | |
| 250 | + super.onError(msg); | |
| 251 | + // 取消失败 | |
| 252 | + h.sendEmptyMessage(NETERRO); | |
| 253 | + } | |
| 254 | + }); | |
| 255 | + } | |
| 256 | + | |
| 257 | + @Override | |
| 258 | + public void GoChat() { | |
| 259 | + // TODO Auto-generated method stub | |
| 260 | + | |
| 261 | + } | |
| 262 | + | |
| 263 | + @Override | |
| 264 | + public void ShowContributionList() { | |
| 265 | + // TODO Auto-generated method stub | |
| 266 | + String requestUrl = LiveApiBean.getUserGiftStatList(BaseInfo.UserId, | |
| 267 | + BaseInfo.Captcha, Userid, 1, 10); | |
| 268 | + HttpUtils.get(requestUrl, new HttpCallback() { | |
| 269 | + @Override | |
| 270 | + public void onSuccess(String data) { | |
| 271 | + // TODO Auto-generated method stub | |
| 272 | + | |
| 273 | + MyFollowerBean bean = JsonUtils.deserialize(data, | |
| 274 | + MyFollowerBean.class); | |
| 275 | + if (0 == bean.getCode()) { | |
| 276 | + mypricelist = bean.getData(); | |
| 277 | + if (mypricelist == null) { | |
| 278 | + return; | |
| 279 | + } | |
| 280 | + if (mypricelist.size() == 0) { | |
| 281 | + return; | |
| 282 | + } | |
| 283 | + new Thread(new Runnable() { | |
| 284 | + @Override | |
| 285 | + public void run() { | |
| 286 | + // TODO Auto-generated method stub | |
| 287 | + mypricelist = ComparatorUtils.myPrice(mypricelist); | |
| 288 | + Message m = new Message(); | |
| 289 | + m.obj = mypricelist; | |
| 290 | + m.what = GETGIFTLIST; | |
| 291 | + h.sendMessage(m); | |
| 292 | + | |
| 293 | + } | |
| 294 | + }).start(); | |
| 295 | + } | |
| 296 | + } | |
| 297 | + }); | |
| 298 | + } | |
| 299 | + | |
| 300 | + @Override | |
| 301 | + public void onSetting(Boolean b) { | |
| 302 | + // TODO Auto-generated method stub | |
| 303 | + if (b) { | |
| 304 | + DeleBlack(); | |
| 305 | + } else { | |
| 306 | + AddBlack(); | |
| 307 | + } | |
| 308 | + } | |
| 309 | + | |
| 310 | + @Override | |
| 311 | + public void ShowBlackDialog(Boolean b) { | |
| 312 | + // TODO Auto-generated method stub | |
| 313 | + BackUserDialog dialog = new BackUserDialog(context, R.style.mindialog, | |
| 314 | + b); | |
| 315 | + dialog.SetChange(this); | |
| 316 | + dialog.show(); | |
| 317 | + } | |
| 318 | + | |
| 319 | +} | ... | ... |
.svn/pristine/08/0832d7319e45d8535182a0f24203865dbe8e483b.svn-base
0 → 100644
No preview for this file type
.svn/pristine/08/084444bc12a8219e9d37f2a46e4a8662eac4643b.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/08/084444bc12a8219e9d37f2a46e4a8662eac4643b.svn-base | |
| 1 | +/** | |
| 2 | + * @author 郎咸智 | |
| 3 | + * 下午6:15:45 | |
| 4 | + */ | |
| 5 | +package com.ivt.android.me.bean; | |
| 6 | + | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * @author 郎咸智 | |
| 11 | + * @version 创建时间:2016-5-31 下午6:15:45 | |
| 12 | + * 类说明 | |
| 13 | + */ | |
| 14 | + | |
| 15 | +/** | |
| 16 | + * @author 郎咸智 | |
| 17 | + * | |
| 18 | + * 2016-5-31 下午6:15:45 | |
| 19 | + */ | |
| 20 | + | |
| 21 | +public class GiftBean { | |
| 22 | + private List<GiftInfoBean> data; | |
| 23 | + private int code; | |
| 24 | + private String description; | |
| 25 | + | |
| 26 | + public GiftBean() { | |
| 27 | + super(); | |
| 28 | + } | |
| 29 | + | |
| 30 | + /** | |
| 31 | + * @return the data | |
| 32 | + */ | |
| 33 | + public List<GiftInfoBean> getData() { | |
| 34 | + return data; | |
| 35 | + } | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * @param data | |
| 39 | + * the data to set | |
| 40 | + */ | |
| 41 | + public void setData(List<GiftInfoBean> data) { | |
| 42 | + this.data = data; | |
| 43 | + } | |
| 44 | + | |
| 45 | + /** | |
| 46 | + * @return the code | |
| 47 | + */ | |
| 48 | + public int getCode() { | |
| 49 | + return code; | |
| 50 | + } | |
| 51 | + | |
| 52 | + /** | |
| 53 | + * @param code | |
| 54 | + * the code to set | |
| 55 | + */ | |
| 56 | + public void setCode(int code) { | |
| 57 | + this.code = code; | |
| 58 | + } | |
| 59 | + | |
| 60 | + /** | |
| 61 | + * @return the description | |
| 62 | + */ | |
| 63 | + public String getDescription() { | |
| 64 | + return description; | |
| 65 | + } | |
| 66 | + | |
| 67 | + /** | |
| 68 | + * @param description | |
| 69 | + * the description to set | |
| 70 | + */ | |
| 71 | + public void setDescription(String description) { | |
| 72 | + this.description = description; | |
| 73 | + } | |
| 74 | + | |
| 75 | +} | ... | ... |
.svn/pristine/08/08752a3a9ac422279e27ad22bcd997659a23b45a.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/08/08752a3a9ac422279e27ad22bcd997659a23b45a.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:layout_height="match_parent" | |
| 5 | + android:background="@null" > | |
| 6 | + | |
| 7 | + <!-- 标题栏布局 --> | |
| 8 | + | |
| 9 | + <View | |
| 10 | + android:id="@+id/chat_min_dismiss" | |
| 11 | + android:layout_width="match_parent" | |
| 12 | + android:layout_height="match_parent" | |
| 13 | + android:background="@null" /> | |
| 14 | + | |
| 15 | + <RelativeLayout | |
| 16 | + android:layout_width="match_parent" | |
| 17 | + android:layout_height="300dp" | |
| 18 | + android:layout_alignParentBottom="true" | |
| 19 | + android:background="@null" | |
| 20 | + android:gravity="center_horizontal" > | |
| 21 | + | |
| 22 | + <RelativeLayout | |
| 23 | + android:id="@+id/chat_dialog_one_layout" | |
| 24 | + android:layout_width="match_parent" | |
| 25 | + android:layout_height="50dp" | |
| 26 | + android:layout_alignParentTop="true" | |
| 27 | + android:background="#ffffff" > | |
| 28 | + | |
| 29 | + <ImageView | |
| 30 | + android:id="@+id/chat_dialog_back_btn" | |
| 31 | + style="@style/title_btn" | |
| 32 | + android:layout_marginLeft="2dp" | |
| 33 | + android:src="@drawable/back_red" | |
| 34 | + android:visibility="gone" /> | |
| 35 | + | |
| 36 | + <TextView | |
| 37 | + android:id="@+id/chat_dialog_main_tv" | |
| 38 | + android:layout_width="wrap_content" | |
| 39 | + android:layout_height="wrap_content" | |
| 40 | + android:layout_centerInParent="true" | |
| 41 | + android:maxLength="10" | |
| 42 | + android:textColor="#d31863" | |
| 43 | + android:textSize="16sp" /> | |
| 44 | + | |
| 45 | + <ImageView | |
| 46 | + android:id="@+id/chat_dialog_user" | |
| 47 | + style="@style/title_btn" | |
| 48 | + android:layout_alignParentRight="true" | |
| 49 | + android:layout_marginRight="5dp" | |
| 50 | + android:gravity="center" | |
| 51 | + android:src="@drawable/btn_person" | |
| 52 | + android:visibility="gone" /> | |
| 53 | + </RelativeLayout> | |
| 54 | + | |
| 55 | + <com.ivt.android.me.ui.myview.DropdownListView | |
| 56 | + android:id="@+id/chat_dialog_lv" | |
| 57 | + android:layout_width="match_parent" | |
| 58 | + android:layout_height="match_parent" | |
| 59 | + android:layout_above="@+id/dibu" | |
| 60 | + android:layout_below="@+id/chat_dialog_one_layout" | |
| 61 | + android:background="#f0f0f0" | |
| 62 | + android:cacheColorHint="@color/transparent" | |
| 63 | + android:divider="@null" | |
| 64 | + android:fadingEdge="none" | |
| 65 | + android:isScrollContainer="true" | |
| 66 | + android:listSelector="@color/transparent" | |
| 67 | + android:scrollbars="none" | |
| 68 | + android:textColor="#000000" | |
| 69 | + android:textSize="12sp" | |
| 70 | + android:transcriptMode="normal" /> | |
| 71 | + | |
| 72 | + <!-- 底部输入框 --> | |
| 73 | + | |
| 74 | + <View | |
| 75 | + android:id="@+id/fengexian" | |
| 76 | + android:layout_width="match_parent" | |
| 77 | + android:layout_height="1px" | |
| 78 | + android:layout_above="@+id/dibu" | |
| 79 | + android:background="#dcdcdc" /> | |
| 80 | + | |
| 81 | + <LinearLayout | |
| 82 | + android:id="@+id/dibu" | |
| 83 | + android:layout_width="match_parent" | |
| 84 | + android:layout_height="wrap_content" | |
| 85 | + android:layout_alignParentBottom="true" | |
| 86 | + android:orientation="vertical" > | |
| 87 | + | |
| 88 | + <RelativeLayout | |
| 89 | + android:layout_width="match_parent" | |
| 90 | + android:layout_height="43dp" | |
| 91 | + android:background="#ffffff" > | |
| 92 | + | |
| 93 | + <EditText | |
| 94 | + android:id="@+id/chat_dialog_edit" | |
| 95 | + android:layout_width="match_parent" | |
| 96 | + android:layout_height="30dp" | |
| 97 | + android:layout_centerVertical="true" | |
| 98 | + android:layout_marginLeft="8dp" | |
| 99 | + android:layout_marginRight="8dp" | |
| 100 | + android:layout_toLeftOf="@+id/chat_dialog_send" | |
| 101 | + android:layout_toRightOf="@+id/chat_dialog_emoji" | |
| 102 | + android:background="@drawable/chat_edit_bg" | |
| 103 | + android:paddingLeft="3dp" | |
| 104 | + android:textColor="#000000" | |
| 105 | + android:textSize="12sp" /> | |
| 106 | + | |
| 107 | + <ImageView | |
| 108 | + android:id="@+id/chat_dialog_emoji" | |
| 109 | + android:layout_width="wrap_content" | |
| 110 | + android:layout_height="wrap_content" | |
| 111 | + android:layout_centerVertical="true" | |
| 112 | + android:layout_marginLeft="7dip" | |
| 113 | + android:src="@drawable/btn_emoji" /> | |
| 114 | + | |
| 115 | + <ImageView | |
| 116 | + android:id="@+id/chat_dialog_send" | |
| 117 | + android:layout_width="wrap_content" | |
| 118 | + android:layout_height="wrap_content" | |
| 119 | + android:layout_alignParentRight="true" | |
| 120 | + android:layout_centerVertical="true" | |
| 121 | + android:layout_marginRight="2dp" | |
| 122 | + android:paddingLeft="3dip" | |
| 123 | + android:paddingRight="3dip" | |
| 124 | + android:src="@drawable/chat_send" /> | |
| 125 | + </RelativeLayout> | |
| 126 | + | |
| 127 | + <include | |
| 128 | + android:id="@+id/chat_face_container" | |
| 129 | + layout="@layout/includ_chat_dialog" | |
| 130 | + android:visibility="gone" /> | |
| 131 | + </LinearLayout> | |
| 132 | + </RelativeLayout> | |
| 133 | + | |
| 134 | +</RelativeLayout> | |
| 0 | 135 | \ No newline at end of file | ... | ... |
.svn/pristine/08/08763a855210c2490722056b5a11719b603fe2e8.svn-base
0 → 100644
No preview for this file type
.svn/pristine/08/08dbd5c3a42ed8c4c75ca152ecf91208ab89ba37.svn-base
0 → 100644
No preview for this file type
.svn/pristine/08/08de2d63a89fd43ab890ef0ae8f545585b1d90be.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/090aa7a5575e45e6f6485014634b99d5ae882bc4.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/09/090aa7a5575e45e6f6485014634b99d5ae882bc4.svn-base | |
| 1 | +package com.ivt.android.me.api; | |
| 2 | + | |
| 3 | +import com.ivt.android.me.utils.publics.StringUtils; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * | |
| 7 | + * @author YeMint 2016-4-25 LiveApiBean.java TODO 最后修改人 :无 | |
| 8 | + */ | |
| 9 | + | |
| 10 | +public class LiveApiBean extends BaseApiBean { | |
| 11 | + /** | |
| 12 | + * 直播界面的系列接口(不用调) | |
| 13 | + * | |
| 14 | + * @param APIMethodName | |
| 15 | + * @param param | |
| 16 | + * @return | |
| 17 | + */ | |
| 18 | + | |
| 19 | + private static String GetUrl(String APIMethodName, String param) { | |
| 20 | + return StringUtils.ChangeUrl(BaseApiBean.GetBaseHost() + APIType_Live | |
| 21 | + + "/" + APIMethodName + "?" + param + "&platform=Android"); | |
| 22 | + } | |
| 23 | + | |
| 24 | + /** | |
| 25 | + * 获取热门直播列表 | |
| 26 | + * | |
| 27 | + * @return | |
| 28 | + */ | |
| 29 | + | |
| 30 | + public static String requestHotLiveList(String username, String capcha, | |
| 31 | + int page, int size) { | |
| 32 | + String param = "username=" + username + "&captcha=" + capcha + "&page=" | |
| 33 | + + page + "&" + "size=" + size; | |
| 34 | + return GetUrl("requestHotLiveList", param); | |
| 35 | + } | |
| 36 | + | |
| 37 | + /** | |
| 38 | + * 发送弹幕 | |
| 39 | + * | |
| 40 | + * @return | |
| 41 | + */ | |
| 42 | + | |
| 43 | + public static String sendBulletScreenMessage(String username, | |
| 44 | + String capcha, int liveId) { | |
| 45 | + String param = "username=" + username + "&captcha=" + capcha | |
| 46 | + + "&liveId=" + liveId; | |
| 47 | + return GetUrl("sendBulletScreenMessage", param); | |
| 48 | + } | |
| 49 | + | |
| 50 | + /** | |
| 51 | + * share | |
| 52 | + * | |
| 53 | + * @return | |
| 54 | + */ | |
| 55 | + | |
| 56 | + public static String share(String username, String capcha, String liveId) { | |
| 57 | + String param = "username=" + username + "&captcha=" + capcha+ "&liveId=" + liveId; | |
| 58 | + return GetUrl("share", param); | |
| 59 | + | |
| 60 | + } | |
| 61 | + | |
| 62 | + /** | |
| 63 | + * 加入房间 | |
| 64 | + * | |
| 65 | + * @return | |
| 66 | + */ | |
| 67 | + | |
| 68 | + public static String loginLiveRoom(String username, String capcha, | |
| 69 | + String liveId, String userId) { | |
| 70 | + String param = "username=" + username + "&captcha=" + capcha | |
| 71 | + + "&liveId=" + liveId + "&userId=" + userId; | |
| 72 | + return GetUrl("loginLiveRoom", param); | |
| 73 | + | |
| 74 | + } | |
| 75 | + | |
| 76 | + /** | |
| 77 | + * 离开房间 | |
| 78 | + * | |
| 79 | + * @return | |
| 80 | + */ | |
| 81 | + | |
| 82 | + public static String logoutLiveRoom(String username, String capcha, | |
| 83 | + String liveId, String userId) { | |
| 84 | + String param = "username=" + username + "&captcha=" + capcha | |
| 85 | + + "&liveId=" + liveId + "&userId=" + userId; | |
| 86 | + return GetUrl("logoutLiveRoom", param); | |
| 87 | + | |
| 88 | + } | |
| 89 | + | |
| 90 | + /** | |
| 91 | + * 更新心跳 | |
| 92 | + * | |
| 93 | + * @return | |
| 94 | + */ | |
| 95 | + | |
| 96 | + public static String updateLiveHeartbeat(String liveId) { | |
| 97 | + String param = "liveId=" + liveId; | |
| 98 | + return GetUrl("updateLiveHeartbeat", param); | |
| 99 | + | |
| 100 | + } | |
| 101 | + | |
| 102 | + /** | |
| 103 | + * 获取用户直播列表 | |
| 104 | + * | |
| 105 | + * @return | |
| 106 | + */ | |
| 107 | + | |
| 108 | + public static String requestUserLiveList(String username, String cap, | |
| 109 | + String userId, int page, int size) { | |
| 110 | + String param = "username=" + username + "&page=" + page + "&captcha=" | |
| 111 | + + cap + "&" + "size=" + size + "&userId=" + userId; | |
| 112 | + return GetUrl("requestUserLiveList", param); | |
| 113 | + | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** | |
| 117 | + * 获取关注的人的直播列表 | |
| 118 | + * | |
| 119 | + * @param start | |
| 120 | + * @param count | |
| 121 | + * @return | |
| 122 | + */ | |
| 123 | + | |
| 124 | + public static String requestFollowerVideoLiveList(String username, | |
| 125 | + String capth, int page, int size) { | |
| 126 | + String param = "username=" + username + "&page=" + page + "&captcha=" | |
| 127 | + + capth + "&" + "size=" + size; | |
| 128 | + return GetUrl("requestFollowerVideoLiveList", param); | |
| 129 | + | |
| 130 | + } | |
| 131 | + | |
| 132 | + /** | |
| 133 | + * 获取最新 | |
| 134 | + * | |
| 135 | + * @param start | |
| 136 | + * @param count | |
| 137 | + * @return | |
| 138 | + */ | |
| 139 | + | |
| 140 | + public static String requestNewLiveList(String username, String capth, | |
| 141 | + int page, int size) { | |
| 142 | + String param = "username=" + username + "&page=" + page + "&captcha=" | |
| 143 | + + capth + "&" + "size=" + size; | |
| 144 | + return GetUrl("requestNewLiveList", param); | |
| 145 | + } | |
| 146 | + | |
| 147 | + /** | |
| 148 | + * 获取明星 | |
| 149 | + * | |
| 150 | + * @param start | |
| 151 | + * @param count | |
| 152 | + * @return | |
| 153 | + */ | |
| 154 | + | |
| 155 | + public static String requestStarLiveList(String username, String capth, | |
| 156 | + int page, int size) { | |
| 157 | + String param = "username=" + username + "&page=" + page + "&captcha=" | |
| 158 | + + capth + "&" + "size=" + size; | |
| 159 | + | |
| 160 | + return GetUrl("requestStarLiveList", param); | |
| 161 | + | |
| 162 | + } | |
| 163 | + | |
| 164 | + /** | |
| 165 | + * 获取直播房间详情 | |
| 166 | + * | |
| 167 | + * @param liveid | |
| 168 | + * @return | |
| 169 | + */ | |
| 170 | + | |
| 171 | + public static String requestLiveRoomInfo(int liveid) { | |
| 172 | + String param = "liveid=" + liveid; | |
| 173 | + return GetUrl("requestHotLiveList", param); | |
| 174 | + | |
| 175 | + } | |
| 176 | + | |
| 177 | + /** | |
| 178 | + * 开启直播接口 | |
| 179 | + * | |
| 180 | + * @param username | |
| 181 | + * @param captcha | |
| 182 | + * @param name | |
| 183 | + * @param tag | |
| 184 | + * @param chatroomAddr | |
| 185 | + * @param isAllowLocation | |
| 186 | + * 1开启,0关闭 | |
| 187 | + * @param longitude | |
| 188 | + * 精度 | |
| 189 | + * @param latitude | |
| 190 | + * 维度 | |
| 191 | + * @return | |
| 192 | + */ | |
| 193 | + public static String startLive(String username, String captcha, | |
| 194 | + String name, String tag, String chatroomAddr, int isAllowLocation, | |
| 195 | + Double longitude, Double latitude) { | |
| 196 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 197 | + + "&" + "name=" + name + "&" + "tag=" + tag + "&" | |
| 198 | + + "chatroomAddr=" + chatroomAddr + "&" + "isAllowLocation=" | |
| 199 | + + isAllowLocation + "&" + "longitude=" + longitude + "&" | |
| 200 | + + "latitude=" + latitude; | |
| 201 | + return GetUrl("startLive", param); | |
| 202 | + } | |
| 203 | + | |
| 204 | + /** | |
| 205 | + * 开启直播接口 | |
| 206 | + * | |
| 207 | + * @param username | |
| 208 | + * @param captcha | |
| 209 | + * @param name | |
| 210 | + * @param tag | |
| 211 | + * @param chatroomAddr | |
| 212 | + * | |
| 213 | + * @return | |
| 214 | + */ | |
| 215 | + public static String startLive(String username, String captcha, | |
| 216 | + String name, String tag, String chatroomAddr) { | |
| 217 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 218 | + + "&" + "name=" + name + "&" + "tag=" + tag + "&" | |
| 219 | + + "chatroomAddr=" + chatroomAddr; | |
| 220 | + return GetUrl("startLive", param); | |
| 221 | + } | |
| 222 | + | |
| 223 | + /** | |
| 224 | + * 结束直播 | |
| 225 | + * | |
| 226 | + * @param username | |
| 227 | + * @param liveId | |
| 228 | + * @return | |
| 229 | + */ | |
| 230 | + public static String stopLive(String username, String cap, String liveId) { | |
| 231 | + String param = "username=" + username + "&" + "liveId=" + liveId + "&" | |
| 232 | + + "captcha=" + cap; | |
| 233 | + return GetUrl("stopLive", param); | |
| 234 | + } | |
| 235 | + | |
| 236 | + /** | |
| 237 | + * 拉黑 | |
| 238 | + * | |
| 239 | + * @param userId | |
| 240 | + * @param blockUserId | |
| 241 | + * @return | |
| 242 | + */ | |
| 243 | + public static String addBlacklist(String userId, String blockUserId) { | |
| 244 | + String param = "userId=" + userId + "&" + "blockUserId=" + blockUserId; | |
| 245 | + return GetUrl("addBlacklist", param); | |
| 246 | + } | |
| 247 | + | |
| 248 | + /** | |
| 249 | + * 取消拉黑 | |
| 250 | + * | |
| 251 | + * @param blacklistId | |
| 252 | + * @return | |
| 253 | + */ | |
| 254 | + public static String cancleBlacklist(String blacklistId) { | |
| 255 | + String param = "blacklistId=" + blacklistId; | |
| 256 | + return GetUrl("cancleBlacklist", param); | |
| 257 | + } | |
| 258 | + | |
| 259 | + /** | |
| 260 | + * 获取拉黑列表 | |
| 261 | + * | |
| 262 | + * @param blacklistId | |
| 263 | + * @return | |
| 264 | + */ | |
| 265 | + public static String getBlacklist(String userId) { | |
| 266 | + String param = "userId=" + userId; | |
| 267 | + return GetUrl("getBlacklist", param); | |
| 268 | + } | |
| 269 | + | |
| 270 | + /** | |
| 271 | + * 判断是否拉黑 | |
| 272 | + * | |
| 273 | + * @param blacklistId | |
| 274 | + * @return | |
| 275 | + */ | |
| 276 | + public static String checkBlacklist(String userId, String blockUserId) { | |
| 277 | + String param = "userId=" + userId + "&" + "blockUserId=" + blockUserId; | |
| 278 | + return GetUrl("checkBlacklist", param); | |
| 279 | + } | |
| 280 | + | |
| 281 | + /** | |
| 282 | + * 举报接口 | |
| 283 | + * | |
| 284 | + * @param username | |
| 285 | + * @param captcha | |
| 286 | + * @param liveid | |
| 287 | + * @param message | |
| 288 | + * @return | |
| 289 | + */ | |
| 290 | + | |
| 291 | + public static String report(String username, String captcha, int liveid, | |
| 292 | + String message) { | |
| 293 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 294 | + + "&" + "liveid=" + liveid + "&" + "message=" + message; | |
| 295 | + return GetUrl("report", param); | |
| 296 | + } | |
| 297 | + | |
| 298 | + /** | |
| 299 | + * 获取直播房间信息 | |
| 300 | + * | |
| 301 | + * @param liveid | |
| 302 | + * @return | |
| 303 | + */ | |
| 304 | + public static String requestLiveInfo(int liveid) { | |
| 305 | + String param = "liveid=" + liveid; | |
| 306 | + return GetUrl("requestLiveInfo", param); | |
| 307 | + } | |
| 308 | + | |
| 309 | + /** | |
| 310 | + * 点赞接口 | |
| 311 | + * | |
| 312 | + * @param username | |
| 313 | + * @param captcha | |
| 314 | + * @param liveid | |
| 315 | + * @return | |
| 316 | + */ | |
| 317 | + public static String like(String username, String captcha, String liveid, | |
| 318 | + int count) { | |
| 319 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 320 | + + "&" + "liveId=" + liveid + "&count=" + count; | |
| 321 | + return GetUrl("like", param); | |
| 322 | + } | |
| 323 | + | |
| 324 | + /** | |
| 325 | + * 赠送礼物/道具接口 | |
| 326 | + * | |
| 327 | + * @param username | |
| 328 | + * @param captcha | |
| 329 | + * @param liveid | |
| 330 | + * @param giftid | |
| 331 | + * @param count | |
| 332 | + * @return | |
| 333 | + */ | |
| 334 | + public static String giftGiving(String username, String captcha, | |
| 335 | + int liveid, int giftid, int count) { | |
| 336 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 337 | + + "&" + "liveid=" + liveid + "&" + "giftid=" + giftid + "&" | |
| 338 | + + "count=" + count; | |
| 339 | + return GetUrl("giftGiving", param); | |
| 340 | + } | |
| 341 | + | |
| 342 | + /** | |
| 343 | + * 直播间贡献度详情接口 | |
| 344 | + * | |
| 345 | + * @param liveid | |
| 346 | + * @return | |
| 347 | + */ | |
| 348 | + public static String getGiftStat(int liveid) { | |
| 349 | + String param = "liveid=" + liveid; | |
| 350 | + return GetUrl("getGiftStat", param); | |
| 351 | + } | |
| 352 | + | |
| 353 | + /** | |
| 354 | + * 个人贡献度详情接口 | |
| 355 | + * | |
| 356 | + * @param userId | |
| 357 | + * @return | |
| 358 | + */ | |
| 359 | + | |
| 360 | + public static String getUserGiftStatList(String username, String captcha, | |
| 361 | + String userId, int page, int size) { | |
| 362 | + String param = "username=" + username + "&" + "captcha=" + captcha | |
| 363 | + + "&" + "userId=" + userId + "&" + "page=" + page + "&" | |
| 364 | + + "size=" + size; | |
| 365 | + return GetUrl("getUserGiftStatList.json", param); | |
| 366 | + } | |
| 367 | + | |
| 368 | + public static String addChatAuth(String userId, String liveId) { | |
| 369 | + String param = "userId=" + userId + "&liveId=" + liveId; | |
| 370 | + return GetUrl("addChatAuth.json", param); | |
| 371 | + } | |
| 372 | + | |
| 373 | + public static String cancleChatAuth(String userId, String liveId) { | |
| 374 | + String param = "userId=" + userId + "&liveId=" + liveId; | |
| 375 | + return GetUrl("cancleChatAuth.json", param); | |
| 376 | + } | |
| 377 | + | |
| 378 | + public static String chechChatAuth(String userId, String liveId) { | |
| 379 | + String param = "userId=" + userId + "&liveId=" + liveId; | |
| 380 | + return GetUrl("chechChatAuth.json", param); | |
| 381 | + } | |
| 382 | + | |
| 383 | + /** | |
| 384 | + * 获取支持度 | |
| 385 | + * | |
| 386 | + * @param username | |
| 387 | + * @return | |
| 388 | + */ | |
| 389 | + public static String UserLikeList(String username, String captch, | |
| 390 | + String userId, int page, int size) { | |
| 391 | + String param = "username=" + username + "&" + "captcha=" + captch + "&" | |
| 392 | + + "userId=" + userId + "&" + "page=" + page + "&" + "size=" | |
| 393 | + + size; | |
| 394 | + return GetUrl("getUserGiftToOtherList", param); | |
| 395 | + } | |
| 396 | + | |
| 397 | +} | ... | ... |
.svn/pristine/09/091c3621a6141ee3a0d737c61f2ffe9cc95791c2.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/09460dc66522d006de34c9400fb032135e76d9c1.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/09/09460dc66522d006de34c9400fb032135e76d9c1.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:layout_height="match_parent" | |
| 5 | + android:orientation="vertical" > | |
| 6 | + | |
| 7 | + <RelativeLayout | |
| 8 | + android:layout_width="match_parent" | |
| 9 | + android:layout_height="wrap_content" > | |
| 10 | + | |
| 11 | + <TableLayout | |
| 12 | + android:id="@+id/newman_tb1" | |
| 13 | + android:layout_width="match_parent" | |
| 14 | + android:layout_height="90dip" | |
| 15 | + android:layout_marginTop="10dip" | |
| 16 | + android:background="@color/wite" > | |
| 17 | + | |
| 18 | + <TableRow | |
| 19 | + android:layout_width="match_parent" | |
| 20 | + android:layout_height="0dip" | |
| 21 | + android:layout_marginTop="2dp" | |
| 22 | + android:layout_weight="1" | |
| 23 | + android:background="@color/wite" | |
| 24 | + android:gravity="center" > | |
| 25 | + | |
| 26 | + <TextView | |
| 27 | + android:layout_width="0dip" | |
| 28 | + android:layout_height="wrap_content" | |
| 29 | + android:layout_weight="1" | |
| 30 | + android:background="@color/wite" | |
| 31 | + android:gravity="center" | |
| 32 | + android:paddingLeft="10dip" | |
| 33 | + android:paddingRight="10dip" | |
| 34 | + android:singleLine="true" | |
| 35 | + android:text="+啊实打实大师大师#" | |
| 36 | + android:textColor="#282828" | |
| 37 | + android:textSize="12sp" /> | |
| 38 | + | |
| 39 | + <TextView | |
| 40 | + android:layout_width="2dp" | |
| 41 | + android:layout_height="match_parent" | |
| 42 | + android:layout_marginBottom="15dip" | |
| 43 | + android:layout_marginTop="15dip" | |
| 44 | + android:background="@color/activity_background" /> | |
| 45 | + | |
| 46 | + <TextView | |
| 47 | + android:layout_width="0dip" | |
| 48 | + android:layout_height="wrap_content" | |
| 49 | + android:layout_weight="1" | |
| 50 | + android:background="@color/wite" | |
| 51 | + android:gravity="center" | |
| 52 | + android:paddingLeft="10dip" | |
| 53 | + android:paddingRight="10dip" | |
| 54 | + android:singleLine="true" | |
| 55 | + android:text="+啊实打实大师大师asdasdasdasdasdasdasd#" | |
| 56 | + android:textColor="#282828" | |
| 57 | + android:textSize="12sp" /> | |
| 58 | + </TableRow> | |
| 59 | + | |
| 60 | + <TableRow | |
| 61 | + android:layout_width="match_parent" | |
| 62 | + android:layout_height="wrap_content" | |
| 63 | + android:background="@color/activity_background" > | |
| 64 | + | |
| 65 | + <TextView | |
| 66 | + android:layout_width="match_parent" | |
| 67 | + android:layout_height="2dp" | |
| 68 | + android:layout_marginLeft="15dip" | |
| 69 | + android:layout_marginRight="15dip" | |
| 70 | + android:background="@color/activity_background" /> | |
| 71 | + </TableRow> | |
| 72 | + | |
| 73 | + <TableRow | |
| 74 | + android:layout_width="match_parent" | |
| 75 | + android:layout_height="0dip" | |
| 76 | + android:layout_weight="1" | |
| 77 | + android:background="@color/wite" | |
| 78 | + android:gravity="center" > | |
| 79 | + | |
| 80 | + <TextView | |
| 81 | + android:layout_width="0dip" | |
| 82 | + android:layout_height="wrap_content" | |
| 83 | + android:layout_weight="1" | |
| 84 | + android:gravity="center" | |
| 85 | + android:paddingLeft="10dip" | |
| 86 | + android:paddingRight="10dip" | |
| 87 | + android:singleLine="true" | |
| 88 | + android:text="+啊实打实大师大师#" | |
| 89 | + android:textColor="#282828" | |
| 90 | + android:textSize="12sp" /> | |
| 91 | + | |
| 92 | + <TextView | |
| 93 | + android:layout_width="2dp" | |
| 94 | + android:layout_height="match_parent" | |
| 95 | + android:layout_marginBottom="15dip" | |
| 96 | + android:layout_marginTop="15dip" | |
| 97 | + android:background="@color/activity_background" /> | |
| 98 | + | |
| 99 | + <TextView | |
| 100 | + android:id="@+id/theme_more" | |
| 101 | + android:layout_width="0dip" | |
| 102 | + android:layout_height="match_parent" | |
| 103 | + android:layout_weight="1" | |
| 104 | + android:drawableRight="@drawable/new_moretitle" | |
| 105 | + android:gravity="center" | |
| 106 | + android:paddingLeft="20dip" | |
| 107 | + android:paddingRight="10dip" | |
| 108 | + android:text="更多热门话题" | |
| 109 | + android:textColor="#282828" | |
| 110 | + android:textSize="12sp" /> | |
| 111 | + </TableRow> | |
| 112 | + </TableLayout> | |
| 113 | + </RelativeLayout> | |
| 114 | +</LinearLayout> | ... | ... |
.svn/pristine/09/095595b9321b51aab4e6d199f2946bddd4ca9281.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/096800290f0608d386740e8a997018f84fb502bf.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/098d1d9913f9097125f383cb6611dc7209974ce7.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/09/098d1d9913f9097125f383cb6611dc7209974ce7.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_detail_download_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_detail_download_nor" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |
.svn/pristine/09/09990ad4c93968d2890394a0aadeebf659b93ac8.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/09/09990ad4c93968d2890394a0aadeebf659b93ac8.svn-base | |
| 1 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 2 | + android:layout_width="match_parent" | |
| 3 | + android:layout_height="48dp" | |
| 4 | + android:background="#36373b"> | |
| 5 | + | |
| 6 | + <ImageView | |
| 7 | + android:layout_width="match_parent" | |
| 8 | + android:layout_height="1px" | |
| 9 | + android:background="#25262a" /> | |
| 10 | + | |
| 11 | + <ImageView | |
| 12 | + android:id="@+id/emoticons_button" | |
| 13 | + android:layout_width="30dp" | |
| 14 | + android:layout_height="30dp" | |
| 15 | + android:layout_centerVertical="true" | |
| 16 | + android:layout_marginLeft="8dp" | |
| 17 | + android:layout_marginRight="8dp" | |
| 18 | + android:src="@drawable/expression_face_selector_black" /> | |
| 19 | + | |
| 20 | + <ImageView | |
| 21 | + android:id="@+id/emoticons_button_gift" | |
| 22 | + android:layout_width="30dp" | |
| 23 | + android:layout_height="30dp" | |
| 24 | + android:layout_centerVertical="true" | |
| 25 | + android:layout_marginRight="8dp" | |
| 26 | + android:layout_toRightOf="@+id/emoticons_button" | |
| 27 | + android:src="@drawable/expression_gift_selector_black" /> | |
| 28 | + | |
| 29 | + <LinearLayout | |
| 30 | + android:layout_width="match_parent" | |
| 31 | + android:layout_height="30dp" | |
| 32 | + android:layout_centerVertical="true" | |
| 33 | + android:layout_toLeftOf="@+id/post_button" | |
| 34 | + android:layout_toRightOf="@+id/emoticons_button_gift" | |
| 35 | + android:background="@drawable/textfield" | |
| 36 | + android:orientation="horizontal" | |
| 37 | + android:paddingLeft="5dp"> | |
| 38 | + | |
| 39 | + <EditText | |
| 40 | + android:id="@+id/chat_content" | |
| 41 | + android:layout_width="match_parent" | |
| 42 | + android:layout_height="match_parent" | |
| 43 | + android:background="@null" | |
| 44 | + android:gravity="center_vertical" | |
| 45 | + android:hint="说点什么吧~~" | |
| 46 | + android:imeOptions="actionSend" | |
| 47 | + android:inputType="textLongMessage" | |
| 48 | + android:maxLength="120" | |
| 49 | + android:textColor="@color/text_hint_color" | |
| 50 | + android:textColorHint="@color/text_input_color" | |
| 51 | + android:textSize="16sp" /> | |
| 52 | + </LinearLayout> | |
| 53 | + | |
| 54 | + | |
| 55 | + <Button | |
| 56 | + android:id="@+id/post_button" | |
| 57 | + android:layout_width="50dp" | |
| 58 | + android:layout_height="30dp" | |
| 59 | + android:layout_alignParentRight="true" | |
| 60 | + android:layout_centerVertical="true" | |
| 61 | + android:layout_marginLeft="8dp" | |
| 62 | + android:layout_marginRight="8dp" | |
| 63 | + android:background="@drawable/btn_send_chat_black" | |
| 64 | + android:gravity="center" | |
| 65 | + android:text="发送" | |
| 66 | + android:textColor="@color/TextColorWhite" | |
| 67 | + android:textSize="16sp" /> | |
| 68 | + | |
| 69 | +</RelativeLayout> | |
| 0 | 70 | \ No newline at end of file | ... | ... |
.svn/pristine/09/09a13d174d9f7d55c54f2eb54db3eaf3083e10a4.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/09d6e56a8e365a5a148a94dc498ea647289f1549.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/09dccc55d65c73c9a38763d98211e468b0178f75.svn-base
0 → 100644
No preview for this file type
.svn/pristine/09/09f147b9e8f6854b7ca2800ccc033617be3a8a59.svn-base
0 → 100644
| 1 | +++ a/.svn/pristine/09/09f147b9e8f6854b7ca2800ccc033617be3a8a59.svn-base | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | + | |
| 3 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | |
| 4 | + <item android:state_pressed="true" android:drawable="@drawable/btn_share_weixin_sel" /> | |
| 5 | + <item android:state_pressed="false" android:drawable="@drawable/btn_share_weixin_nor" /> | |
| 6 | +</selector> | |
| 0 | 7 | \ No newline at end of file | ... | ... |