導航:首頁 > 操作系統 > hongyangAndroid

hongyangAndroid

發布時間:2023-09-12 08:35:29

㈠ 安卓第三方開源庫

https://github.com/Snailclimb/javaGuide
https://github.com/crossoverJie/JCSprout
https://github.com/yangchong211/YCBlogs
https://github.com/GcsSloop/androidNote

Android開源庫V - Layout:淘寶、天貓都在用的UI框架,趕緊用起來吧!
安卓開發者不得不收藏的工具
安卓那些你不得不收藏的開源庫
GitHub上受歡迎的Android UI Library
Android開源項目以及開源框架,各種UI實現效果

Github: https://github.com/fanhua1994/XBaseAndroid
Gituhb: https://github.com/white-cat/ThinkAndroid
Github: https://github.com/gdpancheng/LoonAndroid

http://www.52im.net/

http://blog.csdn.net/dong_18383219470/article/details/71101859
http://blog.csdn.net/dong_18383219470/article/details/77932822

https://github.com/robbiehanson/XMPPFramework Ios
http://www.igniterealtime.org/projects/smack/ Android
http://www.igniterealtime.org/projects/openfire/index.jsp Server
http://www.igniterealtime.org/projects/spark/index.jsp Client

開源中國官方安卓APP
https://gitee.com/oschina/android-app
安卓聊天APP
Gitee: https://gitee.com/735859399/weichat

Github: https://github.com/JackJiang2011/MobileIMSDK

tinker 補丁管理管理平台
https://github.com//tinker-manager
https://www.jianshu.com/p/e61a4d10e122

https://github.com/alibaba/AndFix 阿里系
ttps://github.com/dodola/HotFix 騰訊系
https://github.com/jasonross/Nuwa
https://github.com/bunnyblue/DroidFix
https://github.com/Tencent/tinker 微信
https://github.com/dodola/AnoleFix 仿美團
https://github.com/dodola/RocooFix
https://www.aliyun.com/proct/hotfix
https://github.com/Meituan-Dianping/Robust 美團系
https://github.com/meili/Aceso 蘑菇街
https://github.com/eleme/Amigo/ 餓了么

https://github.com/square/okhttp
Github: https://github.com/jeasonlzy/okhttp-OkGo 5.9K

github: https://github.com/siwangqishiq/ImageEditor-Android

github: https://github.com/Blizzard-liu/AndroidUtils

github: https://github.com/xiuweikang/IM

github: https://github.com/LaiFeng-Android/SopCastComponent

github: https://github.com/zhoubowen-sky/LingDong

github: https://github.com/cxmscb/android-MaterialEditText

GitHub: https://github.com/dmytrodanylyk/circular-progress-button

GitHub: https://github.com/johnkil/Android-AppMsg

GitHub: https://github.com/MrZhousf/EasyDB

GitHub: https://github.com/LineChen/FlickerProgressBar

GitHub:[ https://github.com/chrisbanes/Android-PullToRefresh 暫停維護]
Github: https://github.com/huxq17/XRefreshView
Github: https://github.com/scwang90/SmartRefreshLayout
Github: https://github.com/MarkMjw/PullToRefresh
Github: https://github.com/Yalantis/Phoenix
Github: https://github.com/liaohuqiu/android-cube-app

Github: https://github.com/lizhangqu/Camera

Github: https://github.com/mayubao/KuaiChuan

Github: https://github.com/greenrobot/EventBus

Github: https://github.com/stfalcon-studio/ChatKit
Github: https://github.com/Rance935/ChatUI

Github: https://github.com/qstumn/BadgeView

Github: https://github.com/bingoogolapple/BGAQRCode-Android
Github: https://github.com/dm77/barcodescanner

Github: https://github.com/googlesamples/easypermissions
Github: https://github.com/yanzhenjie/AndPermission

Github: https://github.com/nanchen2251/CompressHelper
Github: https://github.com/jeanboydev/Android-BitherCompress
Github: https://github.com/Curzibn/Luban (最接近朋友圈圖片壓縮演算法
Github: https://github.com/Sunzxyong/Tiny (an image compression framework.)

Github: https://github.com/FinalTeam/RxGalleryFinal
Github: https://github.com/ValuesFeng/AndroidPicturePicker
Github: https://github.com/LuckSiege/PictureSelector

Github: https://github.com/crazycodeboy/TakePhoto

Github: https://github.com/jeasonlzy/NineGridView

Github: https://github.com/donglua/PhotoPicker
Github: https://github.com/jeasonlzy/ImagePicker (已停止維護)
Github: https://github.com/LuckSiege/PictureSelector
Github: https://github.com/FinalTeam/RxGalleryFinal

Gituhb: https://github.com/DroidNinja/Android-FilePicker

Github: https://github.com/HomHomLin/AdvancedPagerSlidingTabStrip

Github: https://github.com/yangfuhai/ASimpleCache

Gituhb: https://github.com/ikew0ng/SwipeBackLayout
Github: https://github.com/liuguangqiang/SwipeBack
[圖片上傳失敗...(image-487509-1510123239039)]
[圖片上傳失敗...(image-f75761-1510123239039)]

Github: https://github.com/Tamicer/JsWebView

Github: https://github.com/forezp/SpringCloudLearning

Gituhb: https://github.com/daimajia/NumberProgressBar

Github: https://github.com/LinHuanTanLy/Pay_Master

Gituhb: https://github.com/chrisbanes/PhotoView

Github: https://github.com/orhanobut/dialogplus
Gituhb: https://github.com/saiwu-bigkoo/Android-AlertView
Github: https://github.com/afollestad/material-dialogs
Github: https://github.com/pedant/sweet-alert-dialog

Github: https://github.com/JoanZapata/android-pdfview

Gituhb: https://github.com/hongyangAndroid/Highlight

Gituhb: https://github.com/xiaoyaoyou1212/BluetoothChat

Github: https://github.com/LillteZheng/ViewPagerHelper

Github: https://github.com/crazyandcoder/citypicker

Github: https://github.com/QMUI/QMUI_Android

MVP+RxJava2+Retrofit2+Glide+Rxbus,主要實現日報、新聞、干貨、影視等資訊,個人項目
Github: https://github.com/Horrarndoo/YiZhi
Github: https://github.com/yangchong211/LifeHelper

A memory leak detection library for Android and Java.(用於Android和Java的內存泄漏檢測庫)
Github: https://github.com/square/leakcanary

Github: https://github.com/zerochl/FFMPEG-AAC-264-Android-32-64

Github: https://github.com/aesion/NodeProgressView

https://github.com/CarGuo/GSYVideoPlayer

Github: https://github.com/gjiazhe/WaveSideBar

Github: https://github.com/fanhua1994/WheelPicker

Gituhb: https://github.com/XXApple/AndroidLibs

Github: https://github.com/AigeStudio/WheelPicker

Github: https://github.com/scwang90/SmartRefreshLayout (最強)
Github : https://github.com/RawnHwang/SmartRefreshLayout
Github: https://github.com/anzewei/NestRefreshLayout

Github: https://github.com/lipangit/JiaoZiVideoPlayer

Github: https://github.com/ACRA/acra

Github: https://github.com/CarGuo/CustomActionWebView

Github: https://github.com/fanhua1994/FastVideoPlayer

輕松將相機功能集成到您的Android應用程序
Github: https://github.com/google/cameraview

Github: https://github.com/hongyangAndroid/AndroidAutoLayout
Github: https://github.com/JessYanCoding/AndroidAutoSize (今日頭條)

視頻錄制 視頻壓縮
Github: https://github.com/zerochl/FFMPEG-AAC-264-Android-32-64
Github: https://github.com/WritingMinds/ffmpeg-android-java
Github : https://github.com/chenhui28/VideoRecorderAndCompressor

Weixin: https://mp.weixin.qq.com/s/7ffZB0_RB90i5c60bEYRWg

Github: https://github.com/bm-x/PhotoView

Github: https://github.com/chrisbanes/PhotoView

Github: https://github.com/jpush/aurora-imui

Github: https://github.com/MZCretin/WifiTransfer-master

Github: https://github.com/DuanJiaNing/Musicoco

Github: https://github.com/GitLqr/LQRWeChat

Github: https://github.com/hmkcode/Android

Github: https://github.com/TheFinestArtist/FinestWebView-Android
github: https://github.com/delight-im/Android-AdvancedWebView

一款新聞客戶端, MVP + RxJava + Retrofit + Dagger2
Github: https://github.com/Will-Ls/WeiYue

Github: https://github.com/yaowen369/DownloadHelper

Github: https://github.com/SOFTPOWER1991/OpenCVCheck

Github: https://github.com/luozhanming/Captcha

Github: https://github.com/JesseFarebro/Android-Mqtt

Github: https://github.com/wenmingvs/AndroidProcess
Github: https://github.com/jaredrummler/AndroidProcesses

Github: https://github.com/daimajia/AndroidSwipeLayout

Github: https://github.com/norbsoft/android-typeface-helper

Github: https://github.com/zcweng/ToggleButton

Github: https://github.com/wangzailfm/WanAndroidClient (Kotlin)
Github: https://github.com/salecoding/WanAndroid (Java)

Github: https://github.com/zrunker/IbookerEditorAndroid/

Github: https://github.com/jfeinstein10/SlidingMenu
Github: https://github.com/SpecialCyCi/AndroidResideMenu

Github: https://github.com/totond/TextPathView

Github: https://github.com/DroidPluginTeam/DroidPlugin [360手機助手]
Github:[

㈡ 如何反編譯狀態欄實現狀態欄動態變色

注意引入相關依賴:
Java代碼
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.android.support:design:22.2.0'
(一)colors.xml 和 styles.xml
首先我們定義幾個顏色:
res/values/color.xml
XML/HTML代碼
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#FF03A9F4</color>
<color name="primary_dark">#FF0288D1</color>
<color name="status_bar_color">@color/primary_dark</color>
</resources>
下面定義幾個styles.xml
注意文件夾的路徑:
values/styles.xml
XML/HTML代碼
<resources>
<style name="BaseAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/primary</item>
<item name="colorPrimaryDark">@color/primary_dark</item>
<item name="colorAccent">#FF4081</item>
</style>

<!-- Base application theme. -->
<style name="AppTheme" parent="@style/BaseAppTheme">
</style>
</resources>
values-v19
XML/HTML代碼
<resources>
<style name="AppTheme" parent="@style/BaseAppTheme">
<item name="android:windowTranslucentStatus">true</item>
</style>
</resources>
ok,這個沒撒說的。注意我們的主題是基於NoActionBar的,android:windowTranslucentStatus這個屬性是v19開始引入的。
(二)布局文件
activity_main.xml
XML/HTML代碼
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>

<LinearLayout
android:id="@+id/id_main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">

<android.support.v7.widget.Toolbar
android:id="@+id/id_toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorPrimary"
android:fitsSystemWindows="true"
app:popupTheme="@style/ThemeOverlay.AppCompat.Light"/>

<TextView
android:id="@+id/id_tv_content"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center"
android:text="HelloWorld"
android:textSize="30sp"/>
</LinearLayout>

<android.support.design.widget.NavigationView
android:id="@+id/id_nv_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="@layout/header_just_username"
app:menu="@menu/menu_drawer"
/>
</android.support.v4.widget.DrawerLayout>
DrawerLayout內部一個LinearLayout作為內容區域,一個NavigationView作為菜單。
注意下Toolbar的高度設置為wrap_content。
然後我們的NavigationView中又依賴一個布局文件和一個menu的文件。
header_just_username.xml
XML/HTML代碼
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="192dp"
android:background="?attr/colorPrimaryDark"
android:orientation="vertical"
android:padding="16dp"
android:fitsSystemWindows="true"
android:theme="@style/ThemeOverlay.AppCompat.Dark">

<TextView
android:id="@+id/id_link"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginBottom="16dp"
android:text="http://blog.csdn.net/lmj623565791"/>

<TextView
android:id="@+id/id_username"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@id/id_link"
android:text="Zhang Hongyang"/>

<ImageView
android:layout_width="72dp"
android:layout_height="72dp"
android:layout_above="@id/id_username"
android:layout_marginBottom="16dp"
android:src="@mipmap/ic_launcher"/>

</RelativeLayout>
menu的文件就不貼了,更加詳細的可以去參考Android 自己實現 NavigationView [Design Support Library(1)]。
大體看完布局文件以後,有幾個點要特別注意:
• ToolBar高度設置為wrap_content
• ToolBar添加屬性android:fitsSystemWindows="true"
• header_just_username.xml的跟布局RelativeLayout,添加屬性android:fitsSystemWindows="true"
android:fitsSystemWindows這個屬性,主要是通過調整當前設置這個屬性的view的padding去為我們的status_bar留下空間。
根據上面的解釋,如果你不寫,那麼狀態欄和Toolbar就會有擠一塊的感覺了,類似會這樣:

ok,最後看下代碼。
(三)Activity的代碼
Java代碼
package com.zhy.colorfulstatusbar;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;

public class MainActivity extends AppCompatActivity
{

@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.id_toolbar);
setSupportActionBar(toolbar);
//StatusBarCompat.compat(this, getResources().getColor(R.color.status_bar_color));
//StatusBarCompat.compat(this);
}

}
沒撒說的,就是setSupportActionBar。
那麼現在4.4的效果圖是:

其實還不錯,有個漸變的效果。
現在5.x的效果:

可以看到5.x默認並非是一個漸變的效果,類似是一個深一點的顏色。
再看看我們md的規范

狀態欄應該是一個比Toolbar背景色,稍微深一點的顏色。
這么看來,我們還是有必要去為4.4做點適配工作,讓其竟可能和5.x顯示效果一致,或者說盡可能符合md的規范。
四、調整4.4的顯示方案
那麼問題來了?如何做呢?
咱們這么看,4.4之後加入windowTranslucentStatus的屬性之後,也就是我們可以用到狀態欄的區域了。
既然我們可以用到這塊區域,那麼我們只要在根布局去設置一個與狀態欄等高的View,設置背景色為我們期望的顏色就可以了。
於是有了以下的代碼:
Java代碼
package com.zhy.colorfulstatusbar;

import android.annotation.TargetApi;
import android.app.Activity;
import android.content.Context;
import android.graphics.Color;
import android.os.Build;
import android.view.View;
import android.view.ViewGroup;

/**
* Created by zhy on 15/9/21.
*/
public class StatusBarCompat
{
private static final int INVALID_VAL = -1;
private static final int COLOR_DEFAULT = Color.parseColor("#20000000");

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
public static void compat(Activity activity, int statusColor)
{

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
{
if (statusColor != INVALID_VAL)
{
activity.getWindow().setStatusBarColor(statusColor);
}
return;
}

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
{
int color = COLOR_DEFAULT;
ViewGroup contentView = (ViewGroup) activity.findViewById(android.R.id.content);
if (statusColor != INVALID_VAL)
{
color = statusColor;
}
View statusBarView = new View(activity);
ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
getStatusBarHeight(activity));
statusBarView.setBackgroundColor(color);
contentView.addView(statusBarView, lp);
}

}

public static void compat(Activity activity)
{
compat(activity, INVALID_VAL);
}

public static int getStatusBarHeight(Context context)
{
int result = 0;
int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resourceId > 0)
{
result = context.getResources().getDimensionPixelSize(resourceId);
}
return result;
}
}
代碼的思路很簡單,根據Activity找到android.R.content,在其中添加一個View(高度為statusbarHeight,背景色為我們設置的顏色,默認為半透明的黑色)。
那麼只需要在Activity裡面去寫上:
Java代碼
StatusBarCompat.compat(this);
就可以了。
如果你希望自己設置狀態看顏色,那麼就用這個方法:
Java代碼
StatusBarCompat.compat(this, getResources().getColor(R.color.status_bar_color));
這樣的話我們就解決了4.4到5.x的適配問題,一行代碼解決,感覺還是不錯的。
最後提一下,對於5.0由於提供了setStatusBarColor去設置狀態欄顏色,但是這個方法不能在主題中設置windowTranslucentStatus屬性。所以,可以編寫一個value-v21文件夾,裡面styles.xml寫入:
XML/HTML代碼
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="@style/BaseAppTheme">
</style>
</resources>
其實就是不要有windowTranslucentStatus屬性。
接下來,對於默認的效果就不測試了,參考上面的效果圖。
我們測試個設置狀態欄顏色的,我們這里設置個紅色。
4.4 模擬器

5.x 真機

閱讀全文

與hongyangAndroid相關的資料

熱點內容
pdf推文 瀏覽:353
69程序員 瀏覽:577
阿里雲伺服器鏡像如何遷移到騰訊 瀏覽:979
安卓如何顯示日期在狀態欄 瀏覽:800
cadsplt這個命令用不了 瀏覽:463
安卓誇克怎麼取消監管 瀏覽:662
pdf怎麼裁剪圖片 瀏覽:436
黑上宏命令 瀏覽:644
mac解壓壓縮包有密碼 瀏覽:704
命令與征服知乎 瀏覽:561
小時代pdf 瀏覽:221
化工設備第三版答案pdf 瀏覽:465
防火卷簾控制器單片機程序 瀏覽:16
rdlcpdf 瀏覽:109
鏈表實現快速排序python 瀏覽:590
php輸出命令 瀏覽:987
d站app叫什麼名字 瀏覽:172
oppor系列如何解除應用加密 瀏覽:601
程序員那麼可愛姜逸城初戀 瀏覽:500
modbustcp編程 瀏覽:493