Code Monkey home page Code Monkey logo

topics's Issues

android Button 如何精确控制内边距

想要精准控制Button内边距,设置padding。
image
image
上图一为Button,图二为TextView ,xml属性完全一样。
追到源码,没有找到类似minHeight,minWidght,或者默认的padding的属性,求解
public Button(Context context, AttributeSet attrs) {
this(context, attrs, com.android.internal.R.attr.buttonStyle);
}

android源码中

<item name="buttonStyle">@style/Widget.Button</item>

<style name="Widget.Button">
<item name="background">@drawable/btn_default</item>
<item name="focusable">true</item>
<item name="clickable">true</item>
<item name="textAppearance">?attr/textAppearanceSmallInverse</item>
<item name="textColor">@color/primary_text_light</item>
<item name="gravity">center_vertical|center_horizontal</item>
</style>

<style name="Widget">
<item name="textAppearance">?textAppearance</item>
</style>

<item name="textAppearance">@style/TextAppearance</item>

<style name="TextAppearance">
        <item name="textColor">?textColorPrimary</item>
        <item name="textColorHighlight">?textColorHighlight</item>
        <item name="textColorHint">?textColorHint</item>
        <item name="textColorLink">?textColorLink</item>
        <item name="textSize">16sp</item>
        <item name="textStyle">normal</item>
    </style>

mipush是阉割push?

所有支持mipush的app有个共同点:只能推送公共消息,无法推送私信。比如:斗鱼可以推送直播开始消息、微博可以推送热点新闻,但私信只有打开app才能收到,有dalao可以解释一下吗?

videoView

本地轮播视频,切换的时候出现黑屏,怎么解决呢?

mipush是阉割push?

所有支持mipush的app有个共同点:只能推送公共消息,无法推送私信。比如:斗鱼可以推送直播开始消息、微博可以推送热点新闻,但私信只有打开app才能收到,有dalao可以解释一下吗?

讨论话题收集

这个下面不建议随便新增 Issue,大家觉得合适的话题需要讨论的,请在下面评论留言,我们来建 Issue。

HttpClient并发请求问题

使用单个HttpClient ThreadSafeClientConnManager 在多线程中并发请求不同域名,会出现域名错乱的bug;比如A,B两个请求,抓包时发现A请求用的是B的域名,导致404报错。

Android 第三方 Push 推送方案使用调查

目前市场上很多三方推送方案,很多朋友问到哪个更稳定、到达率更高。

大家可以讲下自己项目中用到的及遇到的坑。

三方推送方案包括:

较早的 JPush、个推
后来腾讯的信鸽、小米推送、百度推送、华为推送、友盟推送。

PS:知乎上有类似的问题,但答案被大量水军充斥,这里会清净的多。

大家都是如何推广自己的开源项目的?

最近在业余时间搞一个表格view生成的开源项目,具体就是给一个json然后这个framework把json转化成一个mvc为基础的 Android form view, 可以有各种widget做扩展和重复利用。

应用到的领域应该就是数据收集类的移动客户应用的,方便制作表格和数据交换到服务器。

想问一下,大家都是如何拉别人来关注自己的项目,或者吸引其他开发者一起开发开源项目的?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.